Android java.exe已完成,退出值为非零2
我以前的play service版本是6.5.87,升级到7.0.0后出现此错误 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:process'命令 “C:\Program Files\Java\jdkx.x.x\u xx\bin\Java.exe”已完成 非零出口值2 我已经升级了游戏服务,现在我的gradleAndroid java.exe已完成,退出值为非零2,android,dependencies,android-gradle-plugin,Android,Dependencies,Android Gradle Plugin,我以前的play service版本是6.5.87,升级到7.0.0后出现此错误 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:process'命令 “C:\Program Files\Java\jdkx.x.x\u xx\bin\Java.exe”已完成 非零出口值2 我已经升级了游戏服务,现在我的gradle dependencies { compile p
dependencies {
compile project(':com_facebook_android')
compile project(':pullToRefreshLib')
compile project(':smoothProgressbarLib')
compile project(':progressMaterial')
compile 'com.android.support:support-v4:22.0.0'
compile 'com.google.android.gms:play-services:7.0.0'
compile 'com.google.code.gson:gson:2.3'
compile 'com.jakewharton:butterknife:6.1.0'
compile files('libs/android-async-http-1.4.6.jar')
compile files('libs/commons-io-2.4.jar')
compile files('libs/google-api-client-1.4.1-beta.jar')
compile files('libs/google-api-client-googleapis-1.4.1-beta.jar')
compile files('libs/jackson-core-asl-1.6.7.jar')
compile files('libs/jeval.jar')
compile files('libs/jscience.jar')
compile files('libs/libGoogleAnalyticsV2.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/universal-image-loader-1.9.3.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile files('libs/guava-r09.jar')
有冲突库吗?没有人回答。我发现。。。。解决方案是多重索引
public class MyApplication extends MultiDexApplication {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
在menifest文件中
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/Theme.MyAppTheme">
您将能够在gradle中只包含您将使用的Google Play Services API。在此链接中,您应该选择要在项目中编译的URI 例如,如果只包含Google analytics,则应在gradle项目文件中仅添加此项
compile 'com.google.android.gms:play-services-analytics:8.1.0'
我无法继承multidex应用程序:(如何获取?您是否添加了
compile'com.android.support:multidex:1.0.1'
?
android {
compileSdkVersion 21
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.winapp"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
}
dexOptions {
preDexLibraries = false
incremental true
javaMaxHeapSize "4g"
}
afterEvaluate {
tasks.matching {
it.name.startsWith('dex')
}.each { dx ->
if (dx.additionalParameters == null) {
dx.additionalParameters = ['--multi-dex']
} else {
dx.additionalParameters += '--multi-dex'
}
}
}
}
compile 'com.google.android.gms:play-services-analytics:8.1.0'