Cordova for android: An error occurred while listening android targets

前端 未结 5 1092
难免孤独
难免孤独 2020-12-29 15:30

I have read all the questions for the same problems and I have tried everything but nothing is working for me when I try to add android platform for cordova.



        
5条回答
  •  臣服心动
    2020-12-29 16:20

    Please Refer the Question

    An error occurred while listing Android targets

    and the Link developer.android.com/tools/devices/managing-avds-cmdline.html

    Most probably the path variable pointing to this android was wrong. I had used %ANDROID_HOME% as variable and scaled the same to path variables %ANDROID_HOME%\SDK\TOOLS. This method doesn't work. Experimentally resolved by directly pointing to the Tools and Platform Tools.

    Just based on what I did and it worked for me. Hope You get the Issue resolved.

提交回复
热议问题