# Run the ionic app in android device

**URL:** <https://forum.ionicframework.com/t/run-the-ionic-app-in-android-device/171117>\
**Category:** Ionic Framework\
**Created:** [August 13, 2019, 5:46pm UTC](https://forum.ionicframework.com/t/run-the-ionic-app-in-android-device/171117 "2019-08-13T17:46:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SwiftAntIonic](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@SwiftAntIonic](https://forum.ionicframework.com/u/SwiftAntIonic)\
**Post date:** [August 13, 2019, 5:46pm UTC](https://forum.ionicframework.com/t/run-the-ionic-app-in-android-device/171117/1 "2019-08-13T17:46:56Z")

</div>

How to run the ionic app in my android real device.?

i tried this command - ionic cordova run android but am getting this error always.

Failed to find ‘ANDROID\_HOME’ environment variable. Try setting it manually. Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.

What is the solution for this.Please help guys.

---

<div class="post-metadata">

**Author:** ![ChrisGriiffith](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chrisgriiffith/32/66576_2.png) [@ChrisGriiffith](https://forum.ionicframework.com/u/ChrisGriiffith)\
**Post date:** [August 13, 2019, 6:33pm UTC](https://forum.ionicframework.com/t/run-the-ionic-app-in-android-device/171117/2 "2019-08-13T18:33:05Z")

</div>

Have you set your ANDROID\_HOME variable as the error states? A quick search based on your development platform will tell you how to do this.

---

<div class="post-metadata">

**Author:** ![SwiftAntIonic](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@SwiftAntIonic](https://forum.ionicframework.com/u/SwiftAntIonic)\
**Post date:** [August 14, 2019, 2:30am UTC](https://forum.ionicframework.com/t/run-the-ionic-app-in-android-device/171117/3 "2019-08-14T02:30:08Z")

</div>

@ChrisGriiffith May I know how to set the Android Home as error states ?whether I need to set in Environment variable ? If yes What location to be mapped for that?

---

<div class="post-metadata">

**Author:** ![yashwanth493](https://avatars.discourse-cdn.com/v4/letter/y/a183cd/32.png) [@yashwanth493](https://forum.ionicframework.com/u/yashwanth493)\
**Post date:** [August 14, 2019, 6:13am UTC](https://forum.ionicframework.com/t/run-the-ionic-app-in-android-device/171117/4 "2019-08-14T06:13:44Z")

</div>

[this](https://www.360logica.com/blog/how-to-set-path-environmental-variable-for-sdk-in-windows/) link will help you to add ENV variables for android.
