Enable Offline Work:
Offline work
box.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
Window
%USERPROFILE%.{FOLDER_NAME}\studio.exe.vmoptions and/or %USERPROFILE%.{FOLDER_NAME}\studio64.exe.vmoptions
Mac
~/Library/Preferences/{FOLDER_NAME}/studio.vmoptions
Linux
~/.{FOLDER_NAME}/studio.vmoptions and/or ~/.{FOLDER_NAME}/studio64.vmoptions