# How to run on the android? I got the errors

**URL:** <https://forum.ionicframework.com/t/how-to-run-on-the-android-i-got-the-errors/88031>\
**Category:** ionic-v3\
**Created:** [April 27, 2017, 8:25am UTC](https://forum.ionicframework.com/t/how-to-run-on-the-android-i-got-the-errors/88031 "2017-04-27T08:25:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsoh](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@hsoh](https://forum.ionicframework.com/u/hsoh)\
**Post date:** [April 27, 2017, 8:25am UTC](https://forum.ionicframework.com/t/how-to-run-on-the-android-i-got-the-errors/88031/1 "2017-04-27T08:25:36Z")

</div>

Hi

I’m tring to run on the android device. but I got the error after I did typing ‘the ionic cordova run android’.

Anyone who knows?

=======================================================================  
[ERROR] Cordova encountered an error.  
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova run android (exit code 1):

```
    Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
    Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.

```

MacBook-Pro:andtest hsoh$ (node:3174) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed  
(node:3174) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

---

<div class="post-metadata">

**Author:** ![kgaspar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kgaspar/32/108738_2.png) [@kgaspar](https://forum.ionicframework.com/u/kgaspar)\
**Post date:** [April 27, 2017, 8:33am UTC](https://forum.ionicframework.com/t/how-to-run-on-the-android-i-got-the-errors/88031/2 "2017-04-27T08:33:29Z")

</div>

Have you installed the android SDK?

---

<div class="post-metadata">

**Author:** ![Codelives](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/codelives/32/108311_2.png) [@Codelives](https://forum.ionicframework.com/u/Codelives)\
**Post date:** [April 27, 2017, 8:34am UTC](https://forum.ionicframework.com/t/how-to-run-on-the-android-i-got-the-errors/88031/3 "2017-04-27T08:34:21Z")

</div>

You are missing the ANROID\_HOME eniroment variable. Suggest you install Android Studio on your machine.

---

<div class="post-metadata">

**Author:** ![hsoh](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@hsoh](https://forum.ionicframework.com/u/hsoh)\
**Post date:** [April 27, 2017, 8:46am UTC](https://forum.ionicframework.com/t/how-to-run-on-the-android-i-got-the-errors/88031/4 "2017-04-27T08:46:04Z")

</div>

oh my god ;;

OK Thank you !!!
