Duplicate entry using Parse and Multidex

后端 未结 2 1741
孤街浪徒
孤街浪徒 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.

提交回复
热议问题