Answers for "com.android.builder.dexing.dexarchivemergerexception error while merging dex archives flutter"

1

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
Posted by: Guest on October-25-2021
0

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'
}
Posted by: Guest on January-06-2021

Code answers related to "com.android.builder.dexing.dexarchivemergerexception error while merging dex archives flutter"

Browse Popular Code Answers by Language