Duplicate entry using Parse and Multidex

后端 未结 2 1746
孤街浪徒
孤街浪徒 2021-01-03 05:17

My project is a Chat app that uses Parse. After added other dependencies, this problem started appearing:

Error:Execution failed for task \':app:dexDe

相关标签:
2条回答
  • 2021-01-03 05:50

    Your com.facebook.android:facebook-android-sdk:4.1.0 library is messing with parse as both use same bolts-android module internally and having a different version of this module. Try to exclude this module from any of parse or facebook gradle dependency.

    compile('com.facebook.android:facebook-android-sdk:4.1.0') {
            exclude group: 'com.parse.bolts',
                    module: 'bolts-android'
        }
    

    I was having the same problem and When I run ./gradlew yourModuleName:dependencies by the terminal, I found exactly which two libraries are messing with each other having a different version of the same module internally.

    0 讨论(0)
  • 2021-01-03 05:52

    try to change this:

    compile('com.android.support:multidex:1.0.0') {
            exclude group: 'com.parse.bolts',
                    module: 'bolts-android'
        }
    

    To this:

    compile('com.android.support:multidex:1.0.0');
    

    the bolds module is used sometimes to fix Duplicated dexLibs

    Regards

    0 讨论(0)
提交回复
热议问题