Solution:
- Changed below file to modify vm heap option. C:\Program Files\Android\android-studio\bin\studio.exe.vmoptions
- You should create a new environment variable named _JAVA_OPTIONS, set it to -Xms256m -Xmx1024m and it should work.
- Follow this steps:
- Run regedit
- Go to HKEY_CURRENT_USER
- Select Environment
- Add a new String Value and enter _JAVA_OPTIONS for Value name
- Enter -Xms256m -Xmx512m for Value data
- Reboot computer
& increased -Xms128m to -Xms512m and restarted Android Studio.
This was helpful, worked for me!
ReplyDelete