11

While trying to test the android app am creating with React native, I run into this error

info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.

I have the emulator(the AMD version) installed in the android studio.

How can I solve this problem

reisdev
  • 3,018
  • 2
  • 18
  • 37
gbenga ogunbule
  • 489
  • 1
  • 3
  • 13
  • You might need to "start"/"run" the emulator if you haven't already. You could use the `avd list` command to see if you have any emulators running currently. – Abhishek Ghosh Feb 17 '20 at 17:38

3 Answers3

6

In your scenario before running react native application you need to create emulator using Android Studio. You can view official documentation about running application on device by here

Before running your project make sure you have installed adb drivers - More

First of all create AVD using Android Studio.

Open your project android folder using Android Studio.

1. Click AVD Manager from Android Studio
enter image description here 2. Click Create Virtual Device enter image description here 3. Select your device from device list and click Next enter image description here 4. Select the android os version from the available version list and click Next enter image description here 5. On last keep default settings on device and click Finish enter image description here

After that you can see your available android emulator device list from AVD Manager window.

* Before run your react native application make sure you have turn on and run the android emulator from android studio

enter image description here

After that run your project using react-native run-android

Akila Devinda
  • 4,409
  • 1
  • 16
  • 34
2

You can run the command adb devices to check if there is any device attached. It should list atleast one device for it to work

Anas M.I
  • 419
  • 2
  • 8
0

This also may be there is not enough space to run avd, make sure enoug space in hard disk. in my case freed atlest 9gb.

  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/31063126) – tomerpacific Feb 19 '22 at 06:44