Enable Offline Work:
1. Click File -> Settings. Search for “gradle” and click in Offline work box.
2. Go to Compiler (in same settings dialog just below Gradle) and add –offline to Command-line Options text
box.

Improve Gradle Performance
Add following two line of code in your gradle.properties file.
org.gradle.daemon=true
org.gradle.parallel=true

Increasing the value of -Xmx and -Xms in studio.vmoptions file
-Xms1024m
-Xmx4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=256m
-XX:+UseCompressedOops

Leave a Reply

Your email address will not be published. Required fields are marked *