Error when ionic run android --device


#1

i am trying to run my app in device but showing error like Error: The platform “andriod” does not appear to have been added to this project.

please help me with this


#2

Did you add the android platform to your project?

If not:

$cordova platform add android


#3

Not sure whether to cry or facepalm.

First off… it is android and NOT andriod

Those commands should fix it:

> ionic cordova platform add android
> ionic cordova run android
> ionic cordova build android (if you want to create a debug APK)

#4

thank you it working