How to make gradle build in android project faster?

时间秒杀一切 提交于 2019-12-06 20:28:27

It can help you if you run Gradle in daemon mode - https://twitter.com/timbray/status/512368955516657664

If you have multiple cores try gradle --daemon --parallel build, otherwise if you lack multiple cores try gradle --daemon --parallel-threads <number of threads you want to spawn> build. I saw a speed improvement of 200% after the first invocation.

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