日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

android 扫描重复文件,Android Gradle在APK META-INF中复制的重复文件

發布時間:2025/3/12 Android 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

總結

以上是生活随笔為你收集整理的android 扫描重复文件,Android Gradle在APK META-INF中复制的重复文件的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。