Brock
Brock

Reputation: 239

android studio AUTOMATICALLY closes

I installed android studio in windows 7 but it just closes immediately after opening. I've installed java jdk also and added a JDK_HOME environment variable But android studio closes itself after few seconds.

Upvotes: 14

Views: 14178

Answers (3)

Chagai Friedlander
Chagai Friedlander

Reputation: 320

For me it was changing the gradle version which caused this because of a known bug, I commented here on what worked for me but I recommend you read through the whole thing

https://github.com/ConsensusJ/consensusj/issues/7

Upvotes: 0

Khachatur
Khachatur

Reputation: 989

I have two versions of JDK installed on my computer and get the same problem. x64: C:\Program Files\Java\jdk1.8.0_91 x86: C:\Program Files (x86)\Java\jdk1.7.0_55

Solved by pointing the JDK_HOME to x86 path.

Upvotes: 2

Bala Saikrupa Puram
Bala Saikrupa Puram

Reputation: 721

Figured it out! I'm sure someone will run into this in the future, so here goes.

Even though it found my JDK during installation, it wasn't able to find it when I was trying to open it, for some reason. Simple fix. Add a JDK_HOME environment variable to your system variables. It should contain the path to your JDK's ROOT directory. i.e. c:\Program Files\Java\jdk1.7.0_21\

source link

Answer-2

see this link also link2

Upvotes: 2

Related Questions