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

4

7

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')}
Branny answered 25/11, 2017 at 5:27 Comment(5)
can you please share your build.gradle here?Edwinaedwine
please check build.gradle fileBranny
I got same issue sometimes since new android studio (3.0.X), each time I got this one, I need to invalidate cache and restart, and it is working...Subalpine
Chol can you please explainBranny
Invalidate cache and restart works for me you can check it here; readyandroid.wordpress.com/…Photodisintegration
M
6

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..

Millinery answered 30/3, 2018 at 9:43 Comment(0)
E
3

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

buildTypes {
    release {
        shrinkResources true
  }
}
Edwinaedwine answered 25/11, 2017 at 5:52 Comment(1)
I too started getting this error today. Mine is a library module so can't add shrinkResourcesThurlow
Z
0

In my case, I added compile fileTree(include: ['*.jar'], dir: 'libs') to my build.gradle(Module:app) and rebuild my project. Hope this helps!

Zsazsa answered 28/3, 2018 at 14:14 Comment(0)
B
-2
  • At first go to these setting in android studio (first pic)

  • and check (second pic) "Use embedded JDK (recommended)"

  • and also add shrinkResources true in your build.gradle .

    buildTypes { release { shrinkResources true }

    }
    

At last rebuild the project.

Bury answered 19/3, 2018 at 12:51 Comment(3)
Please describe the process on a list of to dos, don't rely on images.Potbelly
First got to File>>Other Settings>>Default Project Structure... On that window please check the option Use Embedded JDK (recommended)Bury
And also add buildTypes { release { shrinkResources true } } in your app level build.gradle file if necessaryBury

© 2022 - 2024 — McMap. All rights reserved.