Android Studio 无法启动:无法找到或加载主类 com.intellij.idea.Main [英] Android Studio doesn't launch: Could not find or load main class com.intellij.idea.Main

查看:122
本文介绍了Android Studio 无法启动:无法找到或加载主类 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 未启动的帖子(例如 ​​thisthis),但都没有他们解决了我的问题.我已将 JAVA_HOMEJDK_HOMEPATH 变量正确设置为 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆