Android Studio does not start: could not find or load the main class com.intellij.idea.Main

Being new to Android devopmnet, I use Android Studio for development, but suddenly it no longer works.

The program no longer starts, and if I run studio.bat from the command line, I get the following error:

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

I saw other reports that Android Studio does not start (for example, this and this ), but none of them solve my problem. I set PATH variables for JAVA_HOME and JDK_HOME correctly C:\Program Files\Java\jdk1.7.0_07

As I mentioned, Android Studio worked, and I don’t know why it stopped working. Any clue?

+7
android intellij-idea android-studio
source share
5 answers

For android studio 1.3.1 go to the environment variable and create a new variable and give it the name JAVA_HOME and use this C: \ Progra ~ 1 \ Java \ jdk1.7.0_71 on the way . Hope this helps you.

+2
source share

Having JAVA_HOME installed to install the latest JDK (C: \ Program Files \ Java \ jdk1.7.0_79) will make Android Studio work. Make sure the path is correct. It seems that JDK_HOME is not needed. Installation Studio Android can refer (does not work)

0
source share

If you just used a copy of a copy of the exe file, it will display this message, so go to Program Files \ Android \ Android Studio \ bin and click on the exe file.

0
source share

If you recently uninstalled and reinstalled Android Studio and previously attached the Android Studio icon to the taskbar or Start menu, this icon may no longer be looking for a new installation. Delete it and drag it, and everything will be fine.

0
source share

I found the answer: you are simply mistaken for shortcut (just ctrl + C ctrl + v ) for the startup file (exe). You must make a shortcut by following this method:

Right-click and select the context menu.

-one
source share

All Articles