So I’ve started dabbling with programming on Android, and Android Studio is the way to go, right? Well, my first experiences with it were a little bit overwhelming. To start things off, when I first ran it after installation, it was dead slow! I mean, unusably dead slow. After a little tinkering, I was able to get it running (relatively) smoothly. I did two things to make it run a little faster.

  • To Build, Execution, Deployment -> Compilers -> Android Compilers -> Additional Build Options, add the following:

-Xms1024m -Xmx4096m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

  • Check Build, Execution, Deployment -> Compile independent modules in parallel

 

  • Check Build, Execution, Deployment -> Gradle -> Enable Offline work

That’s it! Now Android Studio runs (a little bit) faster, and at least I can work on it now 🙂


Leave a Reply