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: org.gradle.process.internal.ExecException: Process 'command 'C:Program FilesJavajdk1.7.0_60injava.exe'' finished with non-zero exit value 2
If I get rid of Facebook Android SDK it compiles without a problem.
My build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21 //tried 19 and 22 changing targetSdkVersion and buildToolsVersion accordingly
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "..."
minSdkVersion 15
targetSdkVersion 21
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
...
}
dependencies {
...
compile 'com.facebook.android:facebook-android-sdk:3.23.1' //tried older versions as well
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…