Jack Frank
Jack Frank

Reputation: 7

"Error occurred during initialization of VM Could not reserve enough space for 1048576KB object heap"

Whenever I started Android studio to begin a project it's showing

Error occurred during initialization of VM Could not reserve enough space for 1048576KB object heap.

I've searched through without any tangible solution.

I'm wondering what could have gone wrong.

I need help.

Upvotes: 0

Views: 6440

Answers (1)

Phreneticus
Phreneticus

Reputation: 381

Did you try this too ? :

"Here is how to fix it: Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System

Variables->New: Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

Variable name: Path
Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin;
Change this to your appropriate path."

There are a few other solutions here: “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G

Upvotes: 1

Related Questions