如何修复"错误 - 未能执行工具\ android.bat,误差2英寸在Android的?

如何修复"错误 - 未能执行工具\ android.bat,误差2英寸在Android的?

问题描述:

当我点击AVD管理器,我收到一个错误,如下面的截图。

When i click on AVD Manager, i am getting an error as in the screenshot below.

中提到的以下链接。但是,没有一个解决方案为我工作。

Referred to the following links. But none of the solution works for me.

Failed执行工具\ android.bat:解

Android SDK的Windows无法执行Android.bat

http://android.stackexchange.com/questions/33538/android-sdk-cant-find-android-bat

在工具 - > lib文件夹中,我有我的AVD管理

In Tools -> Lib Folder i have my AVD Manager.

在工具 - >我android.bat

In Tools -> i have android.bat

我尝试了以下选项,并没有奏效。

I tried the following options and it did not work.

  1. 复制Android的SDK管理器在库文件夹,点击AVD管理。得到了同样的错误。
  2. 复制AVD管理工具文件夹,然后点击AVD管理。得到了同样的错误。

请在下面找到错误的截图。

Please find below the error screenshot.

请让我知道,如果有什么想法。

Kindly let me know if any thoughts.

我的 android.bat 文件被更新特定的SDK包,我的电脑突然关机的时候丢失。因此,我的工具文件夹成空。

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

您可以从恢复 android.bat 文件的温度文件夹

You can recover your android.bat file from temp folder

  1. 手动解压的 tools_r23.05-窗口或任何 tool_rXX.zip 文件(红色)

获取一个文件夹,名为工具(橙色)

Get a folder called tools (orange color)

复制所有此文件夹中的原始工具文件文件夹中(外临时文件夹,如D:\ Android的SDK \工具)

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.