2016-05-16 82 views
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') 
} 

謝謝。

+0

發佈你的'gradle'。 –

+0

嘗試重新開始工作室。它有時是由於低RAM –

+0

我重新啓動,沒有結果。 – user3595578

回答

0

我想你應該安裝更新版本的jdk,刪除你當前的jdk並安裝一個新的版本。 我希望這會有所幫助。

+0

我會試試看@goldls,**謝謝** – user3595578