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

后端 未结 13 1589
死守一世寂寞
死守一世寂寞 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:46

    This wasn't working for me as I did not have this bat file nor the tools directory at all. And my temp directory did not have any zipped tools directory, so could not just replace.

    MS suggested doing repair install

    1. Open the Windows Programs and Features Control Panel.
    2. Right click the relevant Microsoft Visual Studio entry, and select Change
    3. Click the Repair button in the Visual Studio dialog that opens.

    That resolved my issue

提交回复
热议问题