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

前端 未结 4 1523
梦谈多话
梦谈多话 2021-01-02 14:58

I have got this Error while building grade

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

相关标签:
4条回答
  • 2021-01-02 15:44
    • 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.

    0 讨论(0)
  • 2021-01-02 15:47

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

    0 讨论(0)
  • 2021-01-02 15:57

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

    0 讨论(0)
  • 2021-01-02 16:03

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

    buildTypes {
        release {
            shrinkResources true
      }
    }
    
    0 讨论(0)
提交回复
热议问题