My project is a Chat app that uses Parse. After added other dependencies, this problem started appearing:
Error:Execution failed for task \':app:dexDe
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.