cordova - Error: Failed to fetch platform android

后端 未结 15 2392
情深已故
情深已故 2020-11-29 09:19

I installed cordova and create a new project.

But when I use this command to add android platform:

cordova platform add android

15条回答
  •  爱一瞬间的悲伤
    2020-11-29 09:57

    When I tried to remove the android platform from my project directory using this command: cordova platform rm android, it failed.But I managed to do it using the following steps:

    1. I deleted cordova-android folder manually from node_modules.
    2. Removed cordova-android dependency from package.json.
    3. Executed this command from terminal : cordova platform add android --nofetch.

    After these the Platform was added successfully.

提交回复
热议问题