I'm trying to integrate Facebook in my AOS app and I'm getting this error that I can't figure out how to fix it.
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
I modified my app | gradle file as described here
UPDATE Play Services used in this app
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-identity:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
Any ideas? Thanks,
I had the same problem when worked with Facebook SDK. This is solution: How to enable multidexing with the new Android Multidex support library.
I faced the same issue . I solve by by removing unwanted play services
Play services having 15+ support libs so you have to use only what you want dont add full play services
Suggested by google service Check Here