When I try to compile my app I get a following error
Error:Execution failed for task \':app:dexDebug\'.
> com.android.ide.common.process.ProcessException:
While using Facebook SDK project library, Pawel's solution worked for me.
However it stopped working after I had migrated to Gradle dependency 'com.facebook.android:facebook-android-sdk:4.1.1'. Tried to rebuild/reopen project but nothing helped.
This worked for me:
compile ('com.facebook.android:facebook-android-sdk:4.1.1') {
exclude module: 'support-v4'
}
First of all you should try to list your dependencies with gradle :MODULE:dependencies
Check if there are libraries conflicts ( same library but different version ). In this case i supose you should exclude support library module from Facebook SDK.
compile ('com.facebook.android:facebook-android-sdk:3.23.1'){
exclude group: 'com.google.android', module: 'support-v4'
}