Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
217 views
in Technique[技术] by (71.8m points)

android - Cannot open SDK Manager

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:UsersUserAppDataLocalAndroidsdk	oolsandroid.bat": CreateProcess error=5, Acces denied: Cannot run program 

"C:UsersUserAppDataLocalAndroidsdk	oolsandroid.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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 libfind_java.bat if not defined java_exe goto :EOF

  3.  Replace it with this:

    set java_exe="D:Program FilesJavajdk1.7.0_07injava.exe" 

    where the path is the path to your Java exe. 

 4.   Run?android.bat

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...