Android Studio Improve performance tip

suggest change

Enable Offline Work:

  1. Click File → Settings, search for “gradle”, and select Offline work.
  2. In the same dialog, open Compiler (just below Gradle) and add --offline to 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.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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents