Android 合并dex存档时如何解决错误?
我在“生成”面板中遇到此错误:Android 合并dex存档时如何解决错误?,android,parse-platform,Android,Parse Platform,我在“生成”面板中遇到此错误: * What went wrong: Execution failed for task ':app:mergeExtDexDebug'. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerExceptio
* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Program type already present: com.parse.AbstractQueryController$1
将此库实现“com.parse:parse livequery android:1.0.6”添加到我的现有实现后,它们是:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.google.android.gms:play-services:11.4.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.2-alpha01'
//image_view_cornered_lib
implementation 'com.github.siyamed:android-shape-imageview:0.9.3@aar'
//circle image view lib
implementation 'de.hdodenhof:circleimageview:2.2.0'
//parse libs here
implementation 'com.github.parse-community.Parse-SDK-Android:parse:1.19.0'
implementation 'com.github.parse-community.Parse-SDK-Android:fcm:1.19.0'
implementation 'com.github.parse-community.Parse-SDK-Android:ktx:1.19.0'
com.parse.AbstractQueryController
模块由多个库使用
你的情况一定是这样
com.parse:parse livequery android:1.0.6
和com.github.parse community.parse SDK android:parse:1.19.0
要查找模块应用程序的依赖项列表(应用程序的默认模块名称),我们可以执行以下操作
gradlew应用程序:依赖项
检索所有库的列表
在您发现使用了两次不同版本的模块后,请按如下方式排除它
implementation ('com.parse:parse-livequery-android:1.0.6') {
exclude module: 'duplicated module'
}
你试过这个吗:
在app/build.gradle中:
android {
defaultConfig {
multiDexEnabled true
}
}
我不这么认为,它没有达到64K引用限制。你能在这里添加依赖项树吗?您可以使用此命令
/gradlew app:dependencies