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

后端 未结 13 1576
死守一世寂寞
死守一世寂寞 2020-12-17 10:28

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

13条回答
  •  天涯浪人
    2020-12-17 10:41

    My situation: Right after installing Android support into Visual Studio, the "Open Android Emulator Manager (AVD)" button was broken and running C:\Program Files (x86)\Android\android-sdk\tools\lib\AVD Manager.exe produces the error shown by the OP. The screenshot in yean's answer shows an android-sdk folder that contains AVD Manager.exe, but my android-sdk folder did not contain any files (only folders).

    Crazy as it sounds, simply copying AVD Manager.exe from android-sdk\tools\lib to android-sdk fixes both problems. (I couldn't create an API-18 arm emulator but API-19 worked.)

提交回复
热议问题