Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic + Angular - Platform Add Android Error - Error: Failed to fetch platform [email protected]

Okay, so you run this. And it continues to fail.

cordova platform add android --save

And the output is this.

Error: Failed to fetch platform [email protected]

After trying to reinstall cordova, node, and other packages, I have had no luck. I am running this with the ionic blank starter package with ionic Cli 3.

like image 928
doedotdev Avatar asked Oct 28 '25 00:10

doedotdev


2 Answers

For some reason with the latest version of everything, ionic, angular, the cli, etc, the platform was trying to add

[email protected]

To fix this, just go to this link and get the latest version, and run this...

sudo ionic cordova platform add [email protected]
like image 143
doedotdev Avatar answered Oct 30 '25 14:10

doedotdev


remove old android

ionic cordova platform rm android

add latest android

ionic cordova platform add android@latest
like image 23
Peter Mounir Avatar answered Oct 30 '25 15:10

Peter Mounir