3 simple tweaks to improve the performance of Android Studio

Adithya S.T.
Republic of Coders — India
2 min readJan 29, 2021

--

Those who use Android Studio know how its an absolute pain in the a$$ to use it build and android apps. It was so frustrating for me that at one point I wanted to rage quit my journey in android app development. Then I found some simple tricks to make android studio suck less and, in this article, I’ve compiled three simple yet effective steps that you can do to make your android development life easier:

1. Enable compile independent modules in parallel:

1. Click on File>Settings>Build,Execution,Deployment>Compiler

2. Enable Checkbox named Compile independent modules in parallel

2. Add more memory:

  1. Click on Help>Edit Custom VM Options

2. Add the following values:

-Xms1024m
-Xmx2048m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=512m

3. Go to File>Settings > Appearance & Behavior > System Settings > Memory Settings

4. Set max heap size to maximum available in each option

3. Improve Gradle Performance:

1. In the Project Files explorer open gradle.properties file

2. Add the following lines:

org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true

3. Go to File>Settings>Gradle then enable “Offline Work”

Happy Coding ✌

--

--