3

When I start Android Studio I am facing this error.

Error Launching Android Studio

It was working properly until today. But Today I searched for speeding up Android Studio and applying 2nd option of this solution and after that android studio starts throwing this error. I searched a lot but couldn't find the proper solution. I also check JAVA_HOME path and my JDK is also 64 bit. Even I also tried by reinstall android studio again but the error continues.

I am using windows 10, 64 bit Operating System.

How can I solve this error?

Community
  • 1
  • 1
sodhankit
  • 1,138
  • 1
  • 14
  • 26
  • 1
    Finally, I have to [RESET](http://www.laptopmag.com/articles/reset-windows-10-pc) my PC, and it is the only solution I am able to start Android Studio start successfully. – sodhankit Jan 16 '17 at 11:49

6 Answers6

3

I was facing the same error, shortly after selecting Help > Edit Custom JVM Options from my Android Studio menu. Soon as I did that, I wasn't able to restart into my Android studio, citing above error. I tried many options suggested all over, setting JAVA_HOME and whatnot but none worked.

What finally worked was going to <HOME FOLDER>/.AndroidStudio2.2/ and deleting the file studio64. For Windows users the file should be studio64.exe (see below). Please note my Android studio version at the time of writing was 2.2.3, so the Folder/directory to navigate to was based on the major version i.e 2.2. Depending on your Android studio version, the directory to find the file above may be different. Hope this saves someoene some valuable time.

For windows PC:

  • Add jdk location to system environments as JAVA_HOME

  • Delete file from location: C:\Users\USERNAME\.AndroidStudio2.3\studio64.exe

Andre Kampling
  • 5,476
  • 2
  • 20
  • 47
nmvictor
  • 1,109
  • 1
  • 15
  • 30
2

I had the same problem. But I didn't find the C:\Users\usеrname\.AndroidStudio folder. Then I looked in the C:\Users\usеrname folder and found the studio64.exe.vmoptions file.

After deleting this file, Android Studio started without errors.

Ryan M
  • 18,333
  • 31
  • 67
  • 74
Mawon
  • 71
  • 1
  • 6
1

Now I tried all but this didn't work, what did work was that I went to my environment variable looks for JAVA_HOME and I added the path C:\Program Files\Android\Android Studio\jre\jre

1

For 2020 version, instead of C:\Users\usеrname.AndroidStudio folder, check C:\Users*Computer Name*\AppData\Roaming\Google\AndroidStudio2020.3

Temi Toba
  • 11
  • 1
0

Finally I solve this problem. It's so simple guys, you have only to delete this file studio64.exe.vmoption

You can find it here C:\Users\yourPcname\.AndroidStudio2.3

I hope that was helpful

Leonardo Alves Machado
  • 2,747
  • 10
  • 38
  • 53
  • 2
    that works fine; in Android Studio 3.5 version that file is located at: C:\Users\YOURUSERNAME\.AndroidStudio3.5\config – MarkT Oct 01 '19 at 16:28
0

If you didn't find the file studio64.exe.vmoptions in "C:\Users"username"\ .AndroidStudio2.3"

then it will be in this directory "C:\program files\android\android studio\bin"

It works for me

Harith
  • 1
  • 1