Duplicate entry using Parse and Multidex

时光怂恿深爱的人放手 提交于 2019-11-30 15:39:54

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!