K
K
kutu12018-05-11 14:18:35
android studio
kutu1, 2018-05-11 14:18:35

Android studio won't start and throws an error. What to do?

When I start studio it gives me the following error:


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.

Before trying to improve performance with this stuff
studio64.vmoptions looks like this:

-Xms 1024m
-Xmx 4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=256m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djna.nosys= true
-Djna.boot.library.path=
-da
-Dawt.useSystemAAFontSettings=lcd
-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine

What to do? Tell.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Kuzminov, 2018-05-11
@mkuzminov

Without spaces

-Xms1024m
-Xmx4096m

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question