Android Studio Improve performance tip
suggest changeEnable Offline Work:
- Click File → Settings, search for “gradle”, and select Offline work.
- In the same dialog, open Compiler (just below Gradle) and add
--offlineto Command-line Options.
Improve Gradle performance
Add these two lines to gradle.properties:
org.gradle.daemon=true
org.gradle.parallel=true
Increasing the value of -Xmx and -Xms in studio.vmoptions file
-XX:MaxPermSize was removed after Java 7. Current Android Studio runtimes reject it and may fail to start, so leave it out.
-Xms1024m
-Xmx4096m
-XX:ReservedCodeCacheSize=256m
-XX:+UseCompressedOops
{FOLDER_NAME} is the Studio version directory, such as .AndroidStudio2.3.
Windows
%USERPROFILE%\{FOLDER_NAME}\studio.exe.vmoptionsand/or%USERPROFILE%\{FOLDER_NAME}\studio64.exe.vmoptions
Mac
~/Library/Preferences/{FOLDER_NAME}/studio.vmoptions
Linux
~/{FOLDER_NAME}/studio.vmoptionsand/or~/{FOLDER_NAME}/studio64.vmoptions
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents