Failed to Execute Tools\Android.Bat: Solution

Failed to execute tools\android.bat: solution

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/

How to fix Error - Failed to execute tools\android.bat, error 2 in Android?

My android.bat file was missing when updating the particular SDK package and my computer suddenly shut down. Thus, my tools folder became empty.

Sample Image

You can recover your android.bat file from temp folder

Sample Image

  1. Manually unzip tools_r23.05-windows or any tool_rXX.zip file (red color)

  2. Get a folder called tools (orange color)

  3. Copy all the file in this folder to the original tools folder (outside temp folder, e.g. D:\android-sdk\tools)

In my case, the problem was solved this way. Hope this helps.

Failed to execute tools\android.bat

I got my answer,

One additional path was added in the COMSPEC environment variable, there should be only
"C:\Windows\system32\cmd.exe" this line.

To check COMSPEC, type on the cmd

echo %COMSPEC%

AVD Manager can't find tools\android.bat even though it's there

The latest SDK has AVD Manager in the SDK Manager itself. Open SDK Manager -> Tools -> Manage AVDs



Related Topics



Leave a reply



Submit