Ionic failed to add platform android


#1

I installed components:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Local Gulp:
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic Lib App Version: 0.7.0
OS: Windows 7 SP1
Node Version: v5.7.0

I created an application with ionic, now will add an Android platform, and pulls me error:
Error: Failed to fetch android platform
Probably this is Either a connection problem, or platform spec is incorrect.
Check your connection and platform name / version / URL.
Error: version not found: cordova-android@5.1.1


#2

I am having the same issue using both Ionic cli and Webstorm, both loaded in last 2 days. Even tried loading 5.1.1 using android sdk manager which was already up to 6.0 -nada


#3

Happened to me today too. As a workaround I just went back a patch:
ionic platform add android@5.1.0


#4

Ionic failed to add platform android
After execting
ionic platform add android@6.2.2

Still Facing error

× Running command - failed!
[ERROR] Exception: Using cordova-fetch for cordova-android@6.2.2

    Error: Failed to fetch platform cordova-android@6.2.2
    Probably this is either a connection problem, or platform spec is incorrect.
    Check your connection and platform name/version/URL.
    Error: cmd: Command failed with exit code ENOENT

Thanks in advance