Android Studio无法启动:找不到或加载主类com.intellij.idea.Main [英] Android Studio doesn't launch: Could not find or load main class com.intellij.idea.Main
问题描述
作为Android devopmnet的新手,我一直在使用Android Studio进行开发,但是突然之间,它不再起作用了.
Being new in Android devopmnet, I have been using Android Studio for development, but suddenly it doesn't work anymore.
该程序不再启动,并且如果我从命令提示符处执行 studio.bat ,则会出现以下错误:
The program doesn't launch anymore, and If I execute the studio.bat from Command Prompt, I get the following error:
错误:找不到或加载主类com.intellij.idea.Main
Error: Could not find or load main class com.intellij.idea.Main
我还看到了其他有关Android Studio无法启动的信息(例如此),但都没有他们解决了我的问题.我已经将JAVA_HOME
和JDK_HOME
的PATH
变量正确设置为C:\Program Files\Java\jdk1.7.0_07
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
正如我所提到的,Android Studio曾经可以工作,我不知道为什么它停止了工作.有任何线索吗?
As I have mentioned, Android Studio used to work and I don't have any idea why it has stopped working. Any clue?
推荐答案
如果您刚刚使用了exe文件的复制粘贴,它将显示此消息,因此请进入Program Files \ Android \ Android Studio \ bin并单击exe文件.
if you have just used copy paste of exe file it will show this message so go in Program Files\Android\Android Studio\bin and click on exe file.
这篇关于Android Studio无法启动:找不到或加载主类com.intellij.idea.Main的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!