11

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

Vy Do
  • 46,709
  • 59
  • 215
  • 313
tui tran
  • 111
  • 1
  • 1
  • 3
  • Possible duplicate of [Android Studio - No JVM Installation found](http://stackoverflow.com/questions/24898684/android-studio-no-jvm-installation-found) – piyushj Jun 30 '16 at 03:29
  • my error has gone, have a look http://stackoverflow.com/questions/39616303/failed-to-create-jvmerror-code-6-android-studio/41678833#41678833 – Samir Jan 16 '17 at 14:43
  • I have also [answered on another thread](https://stackoverflow.com/a/66532284/5376073) what was working for me. – Tomislav Brabec Mar 08 '21 at 15:16
  • if you meets this problem by changing studio64.exe.vmoptions. restore it. – PangoSea Mar 04 '22 at 06:56

7 Answers7

39

just go this directory:

C:\Users\{pc name}

and delete all folders starting with .AndroidStudio

This solves the issue.

Sam
  • 822
  • 2
  • 8
  • 30
Ali Naeimi
  • 612
  • 8
  • 16
15

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

Satya Attili
  • 678
  • 1
  • 8
  • 17
8

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

Wasim
  • 386
  • 1
  • 4
  • 12
  • 1
    For android studio 4.1 path is different: **C:\Users\%USER%\AppData\Roaming\Google\AndroidStudio4.1\studio64.exe.vmoptions** And yes, that file caused the error on start. Thank you, **@Wasim** – Eugene P. Feb 12 '21 at 16:14
1

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

Vy Do
  • 46,709
  • 59
  • 215
  • 313
0

Delete this file studio64.exe.vmoptions inside

C:\Users\%USER%\.AndroidStudio{version}\config

Lucem
  • 2,912
  • 3
  • 20
  • 33
0

I have had set JAVA_HOME variable appropriately but that didn't work for me. The only thing that worked was running studio.bat file inside C:\Program Files\Android\Android Studio\bin. So, you can set shortcut target to point to the studio.bat file.

NOTES:

  • I am using OpenJDK (Installed via AdoptOpenJDK)
  • Android Studio version is 4.1.2
Tomislav Brabec
  • 529
  • 2
  • 14
  • 20
-1

This problem can occur if there is something like a comment in the red box,so you should delete it.

https://i.stack.imgur.com/64RYL.png

ForeverZer0
  • 2,379
  • 1
  • 24
  • 32
tmexcept
  • 1
  • 1