Android的工作室 - JAVA.EXE完成非零退出值2 [英] Android Studio-Java.exe is finished with non-zero exit value 2
问题描述
当我尝试运行我的应用程序,我收到此错误: -
When I try to Run my app, I am getting this error:-
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_79\bin\java.exe'' finished with non-zero exit value 2
更新: - 这是我的build.gradle(模块:应用程序)文件
UPDATED:- Here is my Build.gradle(Module:app) file
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "navigationdrawer.tutecentral.com.navigationdrawer"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
}
这是什么意思?
推荐答案
这事对我来说,当我被一些类文件重构到库项目中,我有一个类文件的副本名称。所以,仔细检查你没有任何重复的名称。这也似乎是这里的问题的重复:<一href=\"https://stackoverflow.com/questions/30320057/android-project-process-finished-with-non-zero-exit-value-2/30717735#30717735\">android工程:工艺完成了非零退出值2
This happened for me when I was refactoring some class files to a library project and I had a duplicate name of a class file. So, double check that you do not have any duplicate names. This also appears to be a duplicate of the question here: android project: process finished with non-zero exit value 2
这篇关于Android的工作室 - JAVA.EXE完成非零退出值2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!