How to use all CPU cores/threads when running Android Studio gradle build?

拜拜、爱过 提交于 2019-12-02 19:22:52

in the local.properties file in my project I have

org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true

additionally you can specify

org.gradle.parallel.threads

which specifies the maximum number of threads to use for parallel execution. it needs org.gradle.parallel=true. Here you can find more information about it

Update for accepted answer:

Since gradle uses Worker API you need to use

org.gradle.workers.max

instead of

org.gradle.parallel.threads

Link to the doc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!