Error while merging dex archives: code example

Example: 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'
}

Tags:

Java Example