Android Studio Improve performance tip
suggest changeEnable Offline Work:
- Click File -> Settings. Search for “gradle” and click in
Offline work
box. - Go to Compiler (in same settings dialog just below
Gradle
) and add--offline
toCommand-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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents