无法打开SDK管理器 [英] Cannot open SDK Manager

查看:615
本文介绍了无法打开SDK管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个新的项目,当我点击SDK管理器按钮,它提供了以下错误;

I have set up a new project and when I click on the SDK Manager button, it gives the following error;

ProcessNotCreatedException: Cannot run program 

"C:\Users\User\AppData\Local\Android\sdk\tools\android.bat": CreateProcess error=5, Acces denied: Cannot run program 

"C:\Users\User\AppData\Local\Android\sdk\tools\android.bat": CreateProcess error=5, Acces denied

我试图运行它作为一个管理员,并且还试图调低防火墙和防病毒。但是,这并不能正常工作。

I have tried running it as an administrator, and also tried to turn down the firewall and anti-virus. But that didn't work.

如果有人谁可能有这个问题之前,可以帮助我,或者给我一个链接到一个论坛,我的问题将得到解决,这将是巨大的。在此先感谢

If someone who maybe had this problem before could help me out, or send me a link to a forum where my problem will be solved, that would be great. Thanks in advance

推荐答案

您可能没有java的路径环境变量设置..

这是你如何解决这个问题:

You probably don't have java path set in environment variable..
This is how you fix it:

   1. Open up tools/android.bat in your favorite text editor
    2. Search for this piece of code:

   set java_exe= call lib\find_java.bat if not defined java_exe goto :EOF

  3.  Replace it with this:

    set java_exe="D:\Program Files\Java\jdk1.7.0_07\bin\java.exe" 

    where the path is the path to your Java exe. 

 4.   Run android.bat

这篇关于无法打开SDK管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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