I have a multi-project (~10 modules) of which building takes about 20-30 seconds each time. When I press Run in Android Studio, I have to wait every time to rebuild the app,
According to the android documentation, add this in the gradle file of app module.
android { ... dexOptions { preDexLibraries true maxProcessCount 8 } }