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

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

    I have a x86 system (not x86_64).

    in tools\lib\find_jave.bat I replaced:

      find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64
    

    With:

      rem find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64
      set arch_ext=32
    

    Then when android.bat runs, it prints:

      The system cannot find the file specified.
    

    Yet it DOES run the SDK manager.

    I suspect the 'find' line is broken. If you have a 64 bit system, try setting arch_ext to 64 and test that.

提交回复
热议问题