安卓工作室不运行 [英] Android studio does not run

查看:43
本文介绍了安卓工作室不运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio 无法在 Windows 8 中运行.我下载并安装了它,但是当我按下图标运行它时 - 没有任何反应.我尝试与管理员一起运行.我尝试设置与 Windows 7 的兼容性.

Android studio does not run in Windows 8. I download it, install, but when i press on icon to run it - nothing happens. I try to run with admin. I try to set compatibility with Windows 7.

推荐答案

对于调试,启动 C:\Program Files (x86)\Android\android-studio\bin\studio.bat 很有帮助代码>.

For debugging it is very helpful to start C:\Program Files (x86)\Android\android-studio\bin\studio.bat.

这指出了什么是错误的.就我而言,我必须更新我的 JDK_HOME 环境变量以指向当前安装.

That points out what is wrong. In my case I had to update my JDK_HOME environment variable to point to the currient installation.

来自 android 文档(这部分是在我写完答案后发布的):

From the android documentation (this part was published after I wrote my answer):

已知问题:在某些 Windows 系统上,启动程序脚本找不到 Java 的安装位置.如果遇到这个问题,需要设置环境变量来指示正确的位置.

Known issue: On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.

选择开始菜单 >计算机 >系统属性 >高级系统属性.然后打开高级选项卡>环境变量并添加一个新的系统变量 JAVA_HOME 指向您的 JDK 文件夹,例如 C:\Program Files\Java\jdk1.7.0_21.

Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.

这篇关于安卓工作室不运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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