2016-08-02 13 views
0

私のアプリケーションを実行しようとしていますが、上記のエラーが発生しています。解決策を見つけることができません。親切に助けてください。以下は私のGradleコードです。java.exeはゼロ以外の終了値で終了しました。1 android studio

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "com.example.mabdullahali.trenditch" 
     minSdkVersion 15 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.1.1' 
} 
+3

[のGradleの可能性のある重複 - ゼロ以外の終了は何ですかどのように私はそれを修正するのですか?](http://stackoverflow.com/questions/36698816/gradle-what-is-a-non-zero-exit-value-and-how-do -i-fix-it) –

答えて

1

dexOptionsをgradleで追加します。 これがあなたを助けてくれることを願っています。

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "com.example.mabdullahali.trenditch" 
     minSdkVersion 15 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
    } 
    dexOptions { 
     incremental = true; 
     preDexLibraries = false 
     javaMaxHeapSize = "4g" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 
dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.1.1' 
} 
+0

なぜそれがうまくいくか説明することは役に立ちます。 –

0

変動値

buildToolsVersion "24.0.0" 

buildToolsVersion "23.0.1" 

またはSDKマネージャで見設置ビルド・ツールのバージョン

関連する問題