當我嘗試編譯我的應用程序,我收到了以下錯誤java.exe的使用Facebook的SDK
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_60\bin\java.exe'' finished with non-zero exit value 2
如果我擺脫Facebook的Android SDK中的它編譯沒有問題,完成了非零退出值2 。
我的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
}
您是否嘗試過與--debug或--info標誌運行構建? – vkrausser 2015-06-15 12:19:44
請在這裏查看我的帖子 http://stackoverflow.com/a/33387368/740372 – 2015-10-28 09:46:37