gpt4 book ai didi

java - :app:packageAllDebugClassesForMultiDex FAILED in android studio

转载 作者:太空宇宙 更新时间:2023-11-04 13:05:09 25 4
gpt4 key购买 nike

我的项目工作正常,但我添加了 Direct Pay jar 文件。我喜欢这样的错误:-

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: com/toml/dp/util/AES128Bit.class

我的gradle文件:-

    apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

dexOptions {
preDexLibraries = false
}



defaultConfig {
applicationId "shoppingmazza.android.catalyst.com.shoppingmazza"
minSdkVersion 16
targetSdkVersion 23
versionCode 2
versionName "2.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
repositories {
mavenCentral()
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile files('libs/fluent-hc-4.5.jar')
compile files('libs/httpclient-4.5.jar')
compile files('libs/httpclient-cache-4.5.jar')
compile files('libs/httpclient-win-4.5.jar')
compile files('libs/httpcore-4.4.1.jar')
compile files('libs/httpmime-4.5.jar')
compile files('libs/jna-4.1.0.jar')
compile files('libs/jna-platform-4.1.0.jar')
compile 'com.daimajia.slider:library:1.1.5@aar'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile files('libs/commons-net-3.0.1.jar')
compile 'com.squareup.picasso:picasso:2.5.2'
compile files('libs/aes1.4.jar')
compile files('libs/aes5.0.jar')
compile files('libs/aes6.0.jar')
compile 'com.android.support:multidex:1.0.1'
}

最佳答案

仅使用 libs/aesX.X.jar 中的一个 jar 版本。在编译时会多次找到 AES128Bit.class,因为包含同一库的 3 个 jar

关于java - :app:packageAllDebugClassesForMultiDex FAILED in android studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34545722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com