Failed to execute tools\android.bat: solution

前端 未结 18 2108
不知归路
不知归路 2020-11-30 12:13

When I try to open up the SDK Manager in eclipse it says opening shortly, but never opens. I\'ve tried to open the exe file but it displays an error message saying:

相关标签:
18条回答
  • 2020-11-30 13:00

    In my case the Tools directory just disappear.

    ..\sdk\tools

    To solve it:

    1) Just go to SDK zip -> adt-bundle-windows-x86_64-20131030.zip

    2) Unzip the Tools Directory only.

    3) copy it under ../sdk/

    0 讨论(0)
  • 2020-11-30 13:00

    I had the same problem. Caused it myself because while runing Android SDK Manager i hit UNINSTALL SDK Tools.

    I fixed the issue by running the installation of the Android SDK again. The installation folder had to be the same as previously. After the installation, everything was back again as it was.

    0 讨论(0)
  • 2020-11-30 13:01

    I had to move the AVD manager from /sdk/tools/lib to the root folder /sdk

    0 讨论(0)
  • 2020-11-30 13:03

    I've been working with this problem for three days and finally was able to run SDK Manager by

    ==> Running the android.bat file as administrator

    Note: I did not have to make any changes to the .bat file (such as setting the java_exe path) in order for the manager to run.

    I saw this as a comment on the top answer but can't upvote yet, so confirming it here!

    0 讨论(0)
  • 2020-11-30 13:03

    I did the following :

    1. I created a folder SDK right below my C-drive
    2. I unzipped tools_r25.2.3-windows.zip to C:\SDK
    3. I moved SDK Manager.exe from C:\SDK\tools\lib to C:\SDK
    4. I first ran SDK Manager.exe in 'normal mode',but this gave me the error, but when I ran SDK Manager.exe as ADMINISTRATOR it didn't return the error.
    0 讨论(0)
  • 2020-11-30 13:03

    The reg command exists but for unknown reason my path variable was corrupted during some installation.

    So some basic element were missing:

    C:\WINDOWS\system32;
    C:\WINDOWS;
    C:\WINDOWS\System32\Wbem
    
    0 讨论(0)
提交回复
热议问题