[Android] 如何減少Android Build 的 compile 時間

Android compile 總是感覺不夠快

減少開發時間的方法

org.gradle.daemon = true

org.gradle.parallel = true

Setting > “Build, Execution, Deployment” > Build Tools > Gradle > Global Gradle Setting

android {    
productFlavors
{
fast
{ minSdkVersion 21 }
normal
{ minSdkVersion 14 }
}
}

--

--

Team lead of enterprise company, focus on mobile native and react native

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store