篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Lightning Fast Gradle Build相关的知识,希望对你有一定的参考价值。
# Lightning Fast Gradle Build
[Medium](https://android.jlelse.eu/how-i-reduced-my-android-build-times-by-89-4242e51ce946), [Jake Wharton](https://www.reddit.com/r/androiddev/comments/7sxhig/android_studio_slower_when_using_kotlin/dt88pgn/)
Fisrt of all, try this method to speed up Android Studio first ([Gist](https://gist.github.com/vxhviet/0ef6aee756fbedde9c56747e9e64a03b), [Cacher](https://snippets.cacher.io/snippet/9f72893be4f0f07d1cb4)).
In summary, use the Terminal to build with these commands:
```
// To build your debug apk from terminal, run the below
$ ./gradlew assembleDebug
// Deploy the app in ALL connected devices in one step
// Note, this DOESN'T automatically launch the app
$ ./gradlew installDebug
// Remove the app in ALL connected devices in one step
$ ./gradlew uninstallAll
```
In order to use the bundled JDK to run Gradle commands, see this ([Gist](https://gist.github.com/vxhviet/da8563d5578f73ab96089584378df401), [Cacher](https://snippets.cacher.io/snippet/493f0b893ceccddbefe6))
以上是关于markdown Lightning Fast Gradle Build的主要内容,如果未能解决你的问题,请参考以下文章