avdmanager: Command failed with exit code 1 cordova

后端 未结 5 564
抹茶落季
抹茶落季 2021-01-12 06:34

i just started to make my first native cordova app from cordova official tutorial, and when I run

ayam@laptop:~/Documents/learn/hello$ cordova requirements
<         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 07:19

    This problem arises when there is no virtual device set up in the system (No target version or no target device). I am not sure if that is a must. You can add a device using SDK manager.

    In SDK manager, Add an android repository (For example - Android 5.0.1 API 21) and all dependencies like SDK Tools etc.

    Then try cordova requirements. If you are able to run an instance of emulator then this error will go off..(It worked for me that way!)

    Hope this helps..

提交回复
热议问题