Failed to execute tools\android.bat: solution

前端 未结 18 2107
不知归路
不知归路 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 12:38

    In My case, While I installed visual studio 2015, The SDK files were missed and I am getting an error window shown below.

    So I manually downloaded the tools from the following URL.

    tools_r24.0.2-windows

    Then extract the zip file and copy the tools folder in the following location.

    C:\Program Files (x86)\Android\android-sdk
    

    It worked for me.

    0 讨论(0)
  • 2020-11-30 12:41

    I had a similar problem today. Press the Windows button and Search for android.bat(in the search programs and files text field)

    Then copy the file to your android SDK folder (C:\Users\Shan\Documents\Computer Science - YEAR 2\Android App Development\adt-bundle-windows-x86-20130917\sdk\tools\).

    After that don't run SDK manager but run the android.bat file.

    Hope this helps

    -Zaniar

    0 讨论(0)
  • 2020-11-30 12:42

    I cancelled an update to Android Tools and it seems there's a bug with unzipping the old (or new?) version back into {android_sdk}/tools. The zip is located in {android_sdk}/temp. Just unzip it into the right location and it should work again.

    0 讨论(0)
  • 2020-11-30 12:42

    If the accepted answer doesn't help anyone, it also might be a permission issue (if the SDK is installed in Program Files (x86), for example, so try running android.bat as Administrator,

    0 讨论(0)
  • 2020-11-30 12:43

    Copy the AVD Manager.exe and SDK Manager.exe from

    SDK_ROOT_FOLDER/tools/lib/
    

    into

    SDK_ROOT_FOLDER
    
    0 讨论(0)
  • 2020-11-30 12:43

    This is how I solved the problem on Windows 7:
    I was going to update the SDK using Android SDK Manager but android.bat was not found because previously it uninstall the older one and then installs new. In my case my SDK Update was interrupted i.e. in other words, could not install after the SDK Manager uninstalled the tools, so my machine was not able to find android.bat. What I did was just downloaded the standalone SDK tools to the same folder where my SDK were from :

    http://developer.android.com/sdk/index.html#Other

    0 讨论(0)
提交回复
热议问题