web-dev-qa-db-ja.com

gradleエラーのビルド中にこのエラーが発生しました:タスク ':app:processDebugResources'の実行に失敗しました。 >ジョブを処理するスレーブプロセスがなく、中止します

グレードの作成中にこのエラーが発生しました

エラー:タスク ':app:processDebugResources'の実行に失敗しました。 >ジョブを処理するスレーブプロセスがなく、中止します

Build.gradle

 apply plugin: 'com.Android.application' Android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    defaultConfig {
        applicationId "com.colorball.madness"
        minSdkVersion 14
        targetSdkVersion 26
        multiDexEnabled true
        ndk {
            moduleName "player_shared"
        }}
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-Android.txt'), 'proguard-rules.txt'
        } } }dependencies {
    compile 'com.google.Android.gms:play-services:+'
    compile files('libs/dagger-1.2.2.jar')
    compile files('libs/javax.inject-1.jar')
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile files('libs/PTAdRevMob.jar')
    compile 'com.Android.support:appcompat-v7:26.1.0'
    compile 'com.Android.support:multidex:1.0.1'
    compile files('libs/support-v4-19.0.1.jar')}
7
Muhammad Nauman

このスレッドは ジョブを処理するスレーブプロセスがなく、Android studio 3.0.1 を中止しました)で言及されましたが、まったく同じ問題が発生しました(エラーは発生しませんでした-にもかかわらず縮小= false、最小化= false、キャッシュを無効にします)。

この問題を解決した簡単な解決策は、Androidスタジオを閉じて再起動することでした。「キャッシュの無効化と再起動」が失敗した理由はわかりません。しかし、Android新しいMSWindows ..(フォーラムで見つけてエラーを修正しようとして1.5時間失われました。最終的には、Windowsのトリックであることが判明しました。)

この古くからのトリックが誰かを助けることを願っています。

5
Anand Desai

追加 shrinkResources true build.gradleで、ビルドしてみてください。

buildTypes {
    release {
        shrinkResources true
  }
}
3
Samir Bhatt

私の場合、build.gradle(Module:app)にcompile fileTree(include: ['*.jar'], dir: 'libs')を追加して、プロジェクトを再構築しました。お役に立てれば!

0
A.N.T