I recently updated Android Studio from 1.2 to 1.3.1. After updating Gradle Sync failed message is started showing up to increase Java heap size.
Following is the screenshot of error.
TIA
open your projects gradle.properties
file and paste it.
org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m
Go to your Android Studio Folder Where it is installed. There is File stduio.exe
and studio64.exe
with file type of VMOPTIONS
, open it in notepad you will see Something like this:
-Xms512m
-Xmx1280m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Djna.nosys=true
-Djna.boot.library.path=
-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Didea.paths.selector=AndroidStudio1.3
-Didea.platform.prefix=AndroidStudio
According to error you may need to change 2 values in it.
-Xms512m
-Xmx1280m
check this value and change it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With