Reputation: 24462
I'm trying to update the cordova platform to android 6.2.2, but I get the following error:
c:\xampp\htdocs\project>cordova platform update [email protected]
Using cordova-fetch for [email protected]
Error: Failed to fetch platform [email protected]
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Failed to get absolute path to installed module
I couldn't figure out what's wrong, any idea?
Upvotes: 0
Views: 5574
Reputation: 1
Try this commnand which ultimately installs latest version:
cordova platform add android --nofetch
Upvotes: 0
Reputation: 75
Try deleting everything from the platforms folder and then installing them again. That solved the issue for me. I have also deleted and re-installed node_modules as the name change requires it.
Upvotes: 0
Reputation: 8818
There seems to be an error with [email protected]
and later. I had the same issue and using the below step was able to build my apk.
Do the following:
cordova platform remove android
Then add 6.1.2
specifically
cordova platform add [email protected]
Also found the following as an temporary workaround
cordova platform add android --nofetch
Upvotes: 2