After import facebook sdk to my dependencies as:
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
and set up all of facebook requisites on manifest. It started to crash on build.
On Gradle console shows:
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
After some hours looking for solutions I added bolts library as a solution but it didn't work.
And the worst, when I rebuild the project on Android Studio the Build is a Success if I run the project to a device it fails.
Any tips?