Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error launching Android Studio: Failed to create JVM: error code-6

I install Android Studio and run normally. But because it was a bit slow so I follow instructions from the website: How can you do when Android Studio was slow and It made me unable to reopen android studio though I have tried to uninstall and reinstall AS well as Java. I use Android studio 2.1, Windows 8.1, core i3, RAM 4 GB.

enter image description here

like image 742
tui tran Avatar asked Jun 30 '16 02:06

tui tran


4 Answers

just go this directory:

C:\Users\{pc name}

and delete all folders starting with .AndroidStudio

This solves the issue.

like image 187
Ali Naeimi Avatar answered Nov 07 '22 14:11

Ali Naeimi


If you have updated or created studio64.exe.vmoptions which present at the location {$user}/.AndroidStudio$version. Delete the file

like image 31
Wasim Avatar answered Nov 07 '22 15:11

Wasim


Please cross check VMoptions filestudio64.exe.vmoptions file or delete the studio64.exe.vmoptions from the location C:\Users\pcname.AndroidStudioX.Y

like image 15
Satya Attili Avatar answered Nov 07 '22 13:11

Satya Attili


You should:
- Use Windowx x64 (64 bit, because your computer has 4GB RAM).
- Use lastest JDK (1.8 update 92, x64) for Windows
- Important:
Press combination keys: Windows + R or Run utility.
type: systempropertiesadvanced
enter image description here enter image description hereenter image description here enter image description here enter image description here

set environment variable:
JAVA_HOME directory where JDK installed.
add to PATH variable: %JAVA_HOME%\bin

like image 1
Do Nhu Vy Avatar answered Nov 07 '22 14:11

Do Nhu Vy