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

Related Posts

Programming

[Solved] ModuleNotFoundError: No module named ‘cv2’

I installed OpenCV 3.2 from source, as I wanted to get it working with ffmpeg. But, after install, when I tried to import it into a script, I got the following error: ModuleNotFoundError: No module Read more…

Programming

On Error Conditions

“Never test for an error condition you don’t know how to handle.” — Daniel Keys Moran Related

Programming

Informal C++ conditional statements

I like to be very informal with my compilers! Related