cordova platform add android - Not working on Mac Os

前端 未结 3 807
情歌与酒
情歌与酒 2020-12-20 01:49

I\'m new to cordova mobile app development. I have install Node and then install cordova. i have done those steps to create a cordova android app.

  1. cordova crea
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 02:03

    There's also another potential cause for this error: an errant file in your project/www directory. I had inadvertently included a blank file called project/www/:q ("colon q") in www/ (note I use Vim)! Anyway, doing this yields the exact error as noted by JeyTheva. So, delete that file and do the following:

    • cordova platform remove android
    • rm -r ~/.cordova/lib/android
    • cordova platform add android

    Now rebuild and run on your device. This should work if you did something similar to what I did.

提交回复
热议问题