cordova platform add android - Not working on Mac Os

前端 未结 3 1071
走了就别回头了
走了就别回头了 2020-12-20 01:48

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:09

    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.

提交回复
热议问题