Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...