gpt4 book ai didi

java - app:transformDexArchiveWithExternalLibsDexMergerForDebug

转载 作者:行者123 更新时间:2023-12-03 06:30:21 25 4
gpt4 key购买 nike

嗨,大家好,我尝试运行我的应用程序时收到了error

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex



我不知道为什么!

我也尝试了 cleanrebuild项目,但是我总是得到 same error!

现在我发布我的 gradle:
android {
compileSdkVersion 23
buildToolsVersion '26.0.2'

defaultConfig {
applicationId "com.compscitutorials.basigarcia.navigationdrawervideotutorial"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0' }
}

dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
//noinspection GradleCompatible
compile 'com.android.support:recyclerview-v7:26.1.0'
//noinspection GradleCompatible
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.bumptech.glide:glide:3.8.0'
//compile 'com.android.volley:volley:1.0.0'
compile 'com.google.android.exoplayer:exoplayer:r2.4.0'
compile 'com.google.android.exoplayer:exoplayer-core:r2.4.0'
compile 'com.google.android.exoplayer:exoplayer-dash:r2.4.0'
compile 'com.google.android.exoplayer:exoplayer-hls:r2.4.0'
compile 'com.google.android.exoplayer:exoplayer-smoothstreaming:r2.4.0'
compile 'com.google.android.exoplayer:exoplayer-ui:r2.4.0'
compile 'com.facebook.android:facebook-android-sdk:3.21.1'
//noinspection DuplicatePlatformClasses
implementation 'org.apache.httpcomponents:httpclient:4.5.3'
}

有人可以帮助我吗?

先谢谢了!

最佳答案

更改后,我可以编译您的gradle:

compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-core-utils:26.1.0'

代替
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.1'

并且
android {
compileSdkVersion 26

代替
android {
compileSdkVersion 23

关于java - app:transformDexArchiveWithExternalLibsDexMergerForDebug,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47693764/

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