Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio doesn't launch: Could not find or load main class com.intellij.idea.Main

Being new in Android devopmnet, I have been using Android Studio for development, but suddenly it doesn't work anymore.

The program doesn't launch anymore, and If I execute the studio.bat from Command Prompt, I get the following error:

Error: Could not find or load main class com.intellij.idea.Main

I have seen other posts about Android Studio not launching (e.g. this and this), but neither of them solve my problem. I have set PATH variables for both JAVA_HOME and JDK_HOME correctly to C:\Program Files\Java\jdk1.7.0_07

As I have mentioned, Android Studio used to work and I don't have any idea why it has stopped working. Any clue?

like image 837
anderZubi Avatar asked Oct 03 '13 09:10

anderZubi


1 Answers

For android studio 1.3.1 go to environment variable and create new variable and give it a name JAVA_HOME and in path use this C:\Progra~1\Java\jdk1.7.0_71. I hope that can help you.

like image 136
Jay Poojara Avatar answered Sep 28 '22 05:09

Jay Poojara