Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 合并dex存档时如何解决错误?_Android_Parse Platform - Fatal编程技术网

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