[英]finished with non-zero exit value 2 - Android Gradle
Please can anyone help me, I have a problem when I run my android application this error is shown : 请任何人可以帮助我,当我运行我的android应用程序时出现问题,显示此错误:
`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`
I work with android studio 1.2.3 我使用android studio 1.2.3
The app build.gradle is this: 应用程序build.gradle是这样的:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.hp.scan"
minSdkVersion 19
targetSdkVersion 23
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:23.1.1'
compile 'org.apache.httpcomponents:httpcore:4.1.2'
compile files('libs/apache-httpcomponents-httpclient.jar')
}
Thank you. 谢谢。
I think you should install a newer version of jdk, remove your current jdk and install a newer one. 我认为您应该安装较新版本的jdk,删除当前的jdk并安装较新的版本。 I hope it will help. 希望对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.