react-native: Failed run android simulator : No connected devices!
I try to run app on android simulator but failed
:app:installDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 46
- Comments: 19 (3 by maintainers)
Launch the simulator and try running again.
Google brought me here, thought I’d share notes:
If you don’t have any devices listed from
adb devicesYou’ll want to start by creating an Android Virtual Device image.<name>can be anything, such as react,<target>should be one of the options produced by the below command…If that listing is empty, use the
androidcommand’s GUI to install a target platform and such.When you have the platform, and the device, you can then boot the device with emulator:
Once booted, the command you were likely trying to run
react-native run-androidshould produce the effect of a react mobile app running in your emulator window.See: http://stackoverflow.com/questions/4974568/how-do-i-launch-the-android-emulator-from-the-command-line
@mgenev https://developer.android.com/tools/building/building-cmdline.html#RunningOnEmulator
@nvcken I think that you have the same problem with two adb in your machine.
Please remove
android-tools-adbbecause it’s outdated and appoint/usr/bin/adbto adb from Android SDK and try it again. 😉See more about how I solved that in this issue https://github.com/luggit/react-native-config/issues/202
by this file memu adb and memu ide and memu connect problem solved
http://cdn.persiangig.com/download/e8HZsJdyji/memu repair.exe/dl
FWIW, some of the above advice is out-dated…