Can't Add Platform Android to Ionic... android@6.3.0

#1

Hi I’m receiving this issue while adding platform…

Here is the code

$ ionic cordova platform add android
> cordova platform add android@6.3.0
Using cordova-fetch for cordova-android@6.3.0

Error: Failed to fetch platform cordova-android@6.3.0
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

[ERROR] Exception:
1 Like
#2

Did you solve the problem? Same here, too.

#3

I’m getting the same error.

cli packages: (/Applications/MAMP/htdocs/sparkles-android/node_modules)

    @ionic/cli-utils  : 1.17.0
    ionic (Ionic CLI) : 3.17.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.4
    Cordova Platforms  : android 6.3.0 browser 5.0.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node  : v6.12.2
    npm   : 5.2.0
    OS    : macOS Sierra
    Xcode : Xcode 8.3.2 Build version 8E2002

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro
#4

I am getting the same and have tried everything, as a matter of fact, I get the same even on a newly created blank project.

cli packages: (C:\Users\Eduardo Jimenez\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.5
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 25.2.5
    Node              : v8.9.3
    npm               : 5.6.0
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Program Files (x86)\Android\android-sdk\

Misc:

    backend : pro
#5

There seems to be some problem with cordova-android@7.0.0
remove this using
ionic cordova remore platform android
then revert back to version 6.3.0
ionic cordova platform add android@6.3.0

Hope this helps