How to speed up when Android Studio is slow!
Speed Up #1: In Android Studio go to menus and open the Compiler tab:
File >> Settings >> Compile
And as displayed in the following picture, enable the checkbox "Compile independent modules in parallel (may require larger heap size)".
Speed Up #2: In Android Studio go to the Help menu and select "Edit Custom VM Options". If Android Studio asks to create a file as "studio64.exe.vmoptions", select "Yes".
Then, in this config file, enter this settings (also displayed in the following picture):
-server
-Xms128m
-Xmx4096m # Set it to a memory (RAM) size that works for your computer.
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=200m
-XX:+UseCompressedOops
-XX:SoftRefLRUPolicyMSPerMB=50
Now, save the studio.vmoptions file and restart Android Studio.
Speed Up #3: Click File ==> Settings ==> Gradle
Select this checkbox: "Offline work".
Speed Up #4: Click File ==> Settings ==> Compiler
Add:
--offline
into its Command-line Options textbox.
Speed Up #5: Click File ==> Settings ==> Editor ==> File Types
in "Ignore files and folders" add this: Thumbs.db;
At the end, restart Android Studio.
Speed Up #1: In Android Studio go to menus and open the Compiler tab:
File >> Settings >> Compile
And as displayed in the following picture, enable the checkbox "Compile independent modules in parallel (may require larger heap size)".
Enabling "Compile independent modules in parallel" in Android Studio. |
Speed Up #2: In Android Studio go to the Help menu and select "Edit Custom VM Options". If Android Studio asks to create a file as "studio64.exe.vmoptions", select "Yes".
Then, in this config file, enter this settings (also displayed in the following picture):
-server
-Xms128m
-Xmx4096m # Set it to a memory (RAM) size that works for your computer.
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=200m
-XX:+UseCompressedOops
-XX:SoftRefLRUPolicyMSPerMB=50
Now, save the studio.vmoptions file and restart Android Studio.
Use studio64.exe.vmoptions to speed up Android Studio. |
Speed Up #3: Click File ==> Settings ==> Gradle
Select this checkbox: "Offline work".
Speed Up #4: Click File ==> Settings ==> Compiler
Add:
--offline
into its Command-line Options textbox.
Speed Up #5: Click File ==> Settings ==> Editor ==> File Types
in "Ignore files and folders" add this: Thumbs.db;
At the end, restart Android Studio.
Copyright ©2017, Software Developer, All rights reserved.
See Contents
No comments:
Post a Comment