Ionic run android ERROR WINDOWS


#1

Hi I’m new using ionic, I want to run the “ionic run android” command using the id of my device, but I keep on getting an error about the android platform, I already removed it and added it again but it doesnt work, I have no idea what i’m missing, if its a dependency or what, I would apreciate your help…

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
OS:
Node Version: v6.8.0

Usuario@DESKTOP-R2IE3CM MINGW64 ~/teenteras/teenteras (master)
$ ionic platform
Installed platforms:
android 5.2.2
browser 4.1.0
ios 4.2.1
windows 4.4.2
Available platforms:
amazon-fireos ~3.6.3 (deprecated)
blackberry10 ~3.8.0
firefoxos ~3.6.3
webos ~3.7.0
wp8 ~3.8.2 (deprecated)

this is the error:

Usuario@DESKTOP-R2IE3CM MINGW64 ~/teenteras/teenteras (master)
$ ionic run android --target=A013ADFD2AD4BCB8
• You’re trying to build for android but don’t have the platform installed yet.
∆ Installing android for you.
Installing cordova-plugin-device
Installing cordova-plugin-console
Installing cordova-plugin-whitelist
Installing cordova-plugin-splashscreen
Installing cordova-plugin-statusbar
Installing ionic-plugin-keyboard
Error: Command failed: cordova platform add android
Error: Platform android already added.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)