Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have got this Error while building gradle Error:Execution failed for task ':app:processDebugResources'. > No slave process to process jobs, aborting

I have got this Error while building grade

Error:Execution failed for task ':app:processDebugResources'. > No slave process to process jobs, aborting

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')}
like image 807
Muhammad Nauman Avatar asked Nov 25 '17 05:11

Muhammad Nauman


2 Answers

This thread was mentioned in No slave process to process jobs, aborting android studio 3.0.1 and I had exact same issue. (Error was not going in-spite of shrink=false, minify=false, invalidte cache).

Simple solution which solved the issue was close the android studio & relaunch it. Not sure why "invalidate cache & restart" failed. But seems that Android is becoming new MSWindows.. (I lost 1.5 hours in finding on forums & trying to fix the error.. Eventually it turned out to be a windows trick.)

Hope this age old trick will help somebody..

like image 83
Anand Desai Avatar answered Sep 19 '22 14:09

Anand Desai


Add shrinkResources true in your build.gradle and try to build.

buildTypes {
    release {
        shrinkResources true
  }
}
like image 27
Samir Bhatt Avatar answered Sep 18 '22 14:09

Samir Bhatt