我已经在这里阅读了关于这个问题的每一个线程,但我找不到任何关于我的问题的答案。
添加 Fresco 库后,我在构建我的应用程序时遇到此错误。有问题的行是:compile 'com.facebook.fresco:fresco:0.5.3+'
错误:
错误:任务“:app:dexDebug”执行失败。
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_71\bin\java.exe'' 完成非零退出值 2
如果我取出 fresco compile 行,它就可以工作。
我的 gradle 看起来像这样:
buildscript {
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
//classpath 'org.robolectric:robolectric-gradle-plugin:1.1.0'
}
}
allprojects {
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
apply plugin: 'com.android.application'
//apply plugin: 'org.robolectric'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.maddogs.mymoney"
minSdkVersion 11
targetSdkVersion 22
//testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
}
sourceSets {
androidTest {
setRoot('src/test') //note that this is androidTest instead of instrumentTest
}
}
productFlavors {
}
lintOptions {
abortOnError false
}
}
dependencies {
compile 'com.facebook.fresco:fresco:0.5.3+'
compile 'com.facebook.android:facebook-android-sdk:4.3.0'
compile 'com.facebook.stetho:stetho:1.1.1'
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.jakewharton:butterknife:6.1.0'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.android.support:recyclerview-v7:22.2.0'
compile 'com.android.support:cardview-v7:22.2.0'
compile 'com.android.support:design:22.2.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.bignerdranch.android:recyclerview-multiselect:+'
compile files('libs/Parse-1.9.2.jar')
compile files('libs/ParseCrashReporting-1.9.2.jar')
compile files('libs/ParseFacebookUtilsV4-1.9.2.jar')
}
提前致谢 !