com.android.builder.dexing.DexArchiveMergerException:
// go to android/app/build.gradle
// Add the following command inside defaultConfig:
multiDexEnabled true
com.android.builder.dexing.DexArchiveMergerException:
// go to android/app/build.gradle
// Add the following command inside defaultConfig:
multiDexEnabled true
com.android.builder.dexing.dexarchivemergerexception error while merging dex archives flutter
1) Open {your flutter project}/android/app/build.gradle and add following lines.
defaultConfig {
...
multiDexEnabled true // Add this line
}
dependencies {
...
implementation 'com.android.support:multidex:1.0.3' // Add this line
}
2) Migrate to AndroidX.
Open {your flutter project}/android/gradle.properties and add following lines.
...
android.useAndroidX=true // Add this line
android.enableJetifier=true //Add this line
Error while merging dex archives
com.parse.AbstractQueryController module is used by multiple library
in your case it must be com.parse:parse-livequery-android:1.0.6 and com.github.parse-community.Parse-SDK-Android:parse:1.19.0
To find the list of dependencies for the module app (default module's name for the app) we can do a
gradlew app:dependencies
to retrieve a list of all the libraries.
after you found module that used twice with different versions exclude it like this
implementation ('com.parse:parse-livequery-android:1.0.6') {
exclude module: 'duplicated module'
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us