0
請誰能幫助我,我有一個問題,當我運行我的Android應用程序顯示此錯誤:與非零退出值2結束 - 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`
我機器人工作室1.2工作。 3
該應用程序的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')
}
謝謝。
發佈你的'gradle'。 –
嘗試重新開始工作室。它有時是由於低RAM –
我重新啓動,沒有結果。 – user3595578