I have got this Error while building grade
Error:Execution failed for task \':app:processDebugResources\'. > No slave process to process jobs, abor
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.
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..
In my case,
I added compile fileTree(include: ['*.jar'], dir: 'libs')
to my build.gradle(Module:app)
and rebuild my project.
Hope this helps!
Add shrinkResources true
in your build.gradle and try to build.
buildTypes {
release {
shrinkResources true
}
}