I just do it like you say me:
New project created, then:
C:\PROGRAMACION\Ionic 2\PruebaBlanca>ionic cordova platform add android
cordova platform add android --save
√ Running command - done!
Using cordova-fetch for cordova-android@^6.2.3
Adding android project…
Creating Cordova project for the Android platform:
Path: platforms\android
Package: io.ionic.starter
Name: MyApp
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.2.3
Installing “cordova-plugin-console” for android
Installing “cordova-plugin-device” for android
Installing “cordova-plugin-splashscreen” for android
Installing “cordova-plugin-statusbar” for android
Installing “cordova-plugin-whitelist” for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Installing “ionic-plugin-keyboard” for android
–save flag or autosave detected
Saving android@~6.2.3 into config.xml file …
√ Copying default image resources into ./resources/android - done!
And then
C:\PROGRAMACION\Ionic 2\PruebaBlanca>ionic cordova build Android
cordova platform add --save Android
× Running command - failed!
[ERROR] An error occurred while running cordova platform add --save Android (exit code 1):
Using cordova-fetch for Android
Error: Failed to fetch platform Android
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 1 Error output:
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "Android" "--save"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/Android
npm ERR! 404
npm ERR! 404 'Android' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404 1. name can no longer contain capital letters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! C:\PROGRAMACION\Ionic 2\PruebaBlanca\node_modules\npm-debug.log
???