android集合的拷贝,Android Gradle在APK META-INF中复制的重复文件

我尝试在我的Android应用程序中添加spring但应用程序不运行.

我真的不知道为什么我的跑步失败了.你能帮我解决这个问题,谢谢

这是我的app / build.gradle配置:

apply plugin: 'com.android.application'

android {

compileSdkVersion 23

buildToolsVersion "23.0.3"

defaultConfig {

applicationId "com.nizar.abdelhedi.accesscontrol"

minSdkVersion 16

targetSdkVersion 23

versionCode 1

versionName "1.0"

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

resValue "string", "host_name", "access-control-web/rest/roles/attendance"

}

}

configurations {

all*.exclude module: 'httpclient'

all*.exclude module: 'commons-logging'

}

packagingOptions {

exclude 'META-INF/DEPENDENCIES.txt'

exclude 'META-INF/LICENSE.txt'

exclude 'META-INF/NOTICE.txt'

exclude 'META-INF/NOTICE'

exclude 'META-INF/LICENSE'

exclude 'META-INF/DEPENDENCIES'

exclude 'META-INF/notice.txt'

exclude 'META-INF/license.txt'

exclude 'META-INF/dependencies.txt'

exclude 'META-INF/LGPL2.1'

}

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

testCompile 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:23.4.0'

compile 'com.android.support:design:23.4.0'

compile 'com.github.vajro:MaterialDesignLibrary:1.6'

compile 'com.github.blackfizz:eazegraph:1.2.2@aar'

compile 'com.nineoldandroids:library:2.4.0'

compile 'com.github.lecho:hellocharts-library:1.5.8@aar'

compile 'org.springframework:spring-context:4.2.7.RELEASE'

}

}

这是我的错误消息

Information:Gradle tasks [:app:assembleDebug]

:app:preBuild UP-TO-DATE

:app:preDebugBuild UP-TO-DATE

:app:checkDebugManifest

:app:preReleaseBuild UP-TO-DATE

:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE

:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE

:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE

:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE

:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE

:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE

:app:prepareComGithubBlackfizzEazegraph122Library UP-TO-DATE

:app:prepareComGithubLechoHellochartsLibrary158Library UP-TO-DATE

:app:prepareComGithubVajroMaterialDesignLibrary16Library UP-TO-DATE

:app:prepareDebugDependencies

:app:compileDebugAidl UP-TO-DATE

:app:compileDebugRenderscript UP-TO-DATE

:app:generateDebugBuildConfig UP-TO-DATE

:app:mergeDebugShaders UP-TO-DATE

:app:compileDebugShaders UP-TO-DATE

:app:generateDebugAssets UP-TO-DATE

:app:mergeDebugAssets UP-TO-DATE

:app:generateDebugResValues UP-TO-DATE

:app:generateDebugResources UP-TO-DATE

:app:mergeDebugResources UP-TO-DATE

:app:processDebugManifest

:app:processDebugResources

:app:generateDebugSources

:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE

:app:compileDebugJavaWithJavac UP-TO-DATE

:app:compileDebugNdk UP-TO-DATE

:app:compileDebugSources UP-TO-DATE

:app:buildInfoDebugLoader

:app:transformClassesWithExtractJarsForDebug UP-TO-DATE

:app:transformClassesWithInstantRunVerifierForDebug UP-TO-DATE

:app:transformClassesWithJavaResourcesVerifierForDebug UP-TO-DATE

:app:mergeDebugJniLibFolders UP-TO-DATE

:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE

:app:processDebugJavaRes UP-TO-DATE

:app:transformResourcesWithMergeJavaResForDebug FAILED

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/spring.schemas

File1: C:\Users\abdelhedi\.gradle\caches\modules-2\files-2.1\org.springframework\spring-context\4.2.7.RELEASE\289f2906943827d37de89240dbac8fe4b315a838\spring-context-4.2.7.RELEASE.jar

File2: C:\Users\abdelhedi\.gradle\caches\modules-2\files-2.1\org.springframework\spring-aop\4.2.7.RELEASE\bd65f97ba61fd3dcc0b74765d3fa388aeb388aa7\spring-aop-4.2.7.RELEASE.jar

File3: C:\Users\abdelhedi\.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\4.2.7.RELEASE\ae0501728c0ee072e25cb5e11b63b883c0786b4b\spring-beans-4.2.7.RELEASE.jar

Information:BUILD FAILED

Information:Total time: 2.634 secs

Information:1 error

Information:0 warnings

Information:See complete output in console

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值