Android-Studio : Error: Could not create the Java Virtual Machine

前端 未结 8 1727
耶瑟儿~
耶瑟儿~ 2020-12-01 12:41

I have just installed Android - studio today. First I have to install jdk7 for this IDE.

After that only I was able to launch IDE.

Now When I am trying to cr

8条回答
  •  春和景丽
    2020-12-01 12:56

    I found the solution in vs-android Issue 15: -dex: could not create the Java virtual machine

    Follow this steps:

    1. Run regedit
    2. Go to HKEY_CURRENT_USER
    3. Select Environment
    4. Add a new String Value and enter _JAVA_OPTIONS for Value name
    5. Enter -Xms256m -Xmx512m for Value data
    6. Reboot computer

提交回复
热议问题