I was tweaking Android Studio to make it fast. Upon suggestion from this post- Android Studio is slow (how to speed up)? I made the below changes: Under Help> Edit Custom VM Options I have:
-Xms1024m
-Xmx4096m # <------ increase this to most of your RAM
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=440m
-XX:+UseCompressedOops
-XX:-HeapDumpOnOutOfMemoryError
-Dfile.encoding=UTF-8
Now Android Studio wont start. The error shows up as-
Invalid maximum heap size: -Xmx4096m # <------ increase this to most of your RAM Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Any suggestion to solve this error or any commands to reset Android Studio or revert this. I tried to edit the Vmoptions but it doesnt had any effect.