# Cannot run or emulate android app

**URL:** <https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584>\
**Category:** ionic-v3\
**Created:** [November 18, 2017, 4:23pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584 "2017-11-18T16:23:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerrVey](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@HerrVey](https://forum.ionicframework.com/u/HerrVey)\
**Post date:** [November 18, 2017, 4:23pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/1 "2017-11-18T16:23:14Z")

</div>

I’m new on Ionic and I’m having trouble with running or emulating an basic app through `ionic cordova run android` or `ionic cordova emulate android`.  
Creating a new app and adding android platform works fine, as well as previewing it on my browser. But when I connect my Samsung (in developer mode) and run `ionic cordova run android`, it doesn’t detect it and doesn’t succeed either to load the emulator.

```auto
No target specified and no devices found, deploying to emulator
Error: No emulator images (avds) found.
1. Download desired System Image by running: /home/herve/Android/Sdk/tools/android sdk
2. Create an AVD by running: /home/herve/Android/Sdk/tools/android avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

```

However, when I run `android avd list`, I get the avd I installed through Android Studio :

```auto
Available Android Virtual Devices:
   Name: Nexus_5X_API_26
 Device: Nexus 5X (Google)
   Path: /home/herve/.android/avd/Nexus_5X_API_26.avd
 Target: Google Play (Google Inc.)
         Based on: Android 8.0 (Oreo) Tag/ABI: google_apis_playstore/x86
   Skin: nexus_5x
 Sdcard: 100M

```

Here is my `ionic info`

```auto
cli packages: (/usr/lib/node_modules)

    @ionic/cli-utils : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.2
    Cordova Platforms : android 6.3.0
    Ionic Framework : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node : v8.9.0
    npm : 5.5.1 
    OS : Linux 4.10

Environment Variables:

    ANDROID_HOME : /home/herve/Android/Sdk

Misc:

    backend : pro

```

Does anyone has any idea why I can’t run or emulate ionic apps ? Any help will be appreciated !

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [November 18, 2017, 4:25pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/2 "2017-11-18T16:25:07Z")

</div>

whats the result of `adb devices`?

---

<div class="post-metadata">

**Author:** ![HerrVey](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@HerrVey](https://forum.ionicframework.com/u/HerrVey)\
**Post date:** [November 18, 2017, 5:13pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/3 "2017-11-18T17:13:24Z")

</div>

I get `List of devices attached` : followed by nothing

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [November 18, 2017, 5:15pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/4 "2017-11-18T17:15:31Z")

</div>

device is connected and in dev mode with usb debugging activated?

---

<div class="post-metadata">

**Author:** ![HerrVey](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@HerrVey](https://forum.ionicframework.com/u/HerrVey)\
**Post date:** [November 18, 2017, 5:31pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/5 "2017-11-18T17:31:19Z")

</div>

My bad I thought dev mode would activate usb debugging. With USB Debugging it works ! Thanks ! However I still can’t emulate with `ionic cordova emulate android`. Any suggestion ?

---

<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:** [November 20, 2017, 12:31pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/6 "2017-11-20T12:31:34Z")

</div>

Whenever you connect your device to system,  
It asks for **RSA fingerprint Allow it.** in the device.

Later for testing inspect a tab in chrome and check is your device listed in remote devices.  
If you are able to see your device in the chrome Then run with android .  
You will be able to run on device.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:03pm UTC](https://forum.ionicframework.com/t/cannot-run-or-emulate-android-app/112584/7 "2021-07-19T22:03:25Z")

</div>

Closed on July 19, 2021, 10:03pm UTC


