I have a relatively big Android project that contains about 200-250 resources, mainly .xml layouts. This means that when I modify and save one of them, the following rebuilding process takes about 1 min, which is damn annoying on the long run.
Could you recommend any tips that help on this matter?
There may be many plugins in Android Studio that you are not using it. Disabling it will free up some space and reduce complex processes. To do so, Open Preferences >> Plugins and Disable the plugins you are not using.
Check your Internet connection. If internet speed is very slow gradle build will also take long time to build. I check by change my wifi internet connection with another one good speed connection. Now build time is normal.
Yes update to the latest Eclipse Android Plugin (ADT version 12), then go:
Window > Preferences > Android > Build > TICK 'Skip packaging and dexing until export...'
This will stop building till you export, just like it saves, knocks a few seconds off your save time when editing XML files in a large project.
Use ADT 12. Go to Preferences->Android->Build and check 'Skip packaging and dexing until export or launch'. Resources won't be compiled when you save, only when you run your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With