FAILURE: Build failed with an exception. error Failed to install the app - react-native

I get this error when trying to start react-native app.
I have path to ANDROID_HOME, JAVA_HOME, platform-tools. I use android studio emulator.
My error mesage in console
Be free to ask me any questions.
Thanks for any help
EDIT1: For starting I use npx react-native run-android, when I use ract-native-cli, it shows the same error.

Have you connected any device? ( any adb devices ? )

Related

npx react-native run-android doenst see any avds

When running command
npx react-native run-android
I get error:
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
If I type emulator -list-avds in powershell I clearly see one emulator up and running. What I`m doing wrong?
You can start emulator from android studio or use command prompt to start emulator.
use this link:https://www.youtube.com/watch?v=NH554nwx0MU
In my case its giving same error error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds
but as we started emulator already, we can ignore this error and it works fine.

React native device 'adb' not found

I am trying to open my react native app on the android studio device emulator but I am facing an error :
Couldn't start a project on Android: Error running adb: spawn emulator ENOENT
Error running adb: spawn emulator ENOENT
Also, my emulator is in running condition. how to fix this
make sure code is working on web, then restart AVD. by closing it completely. mine is working now. but after some time whenever there is any error in code it crashes again and repeating the process makes it working. also before starting in AVD please close web testing.

No apps connected. Sending "devMenu" to all React Native apps failed

This is a strange error when I ran React Native (0.63.2) app on Android 8.1 emulator with
npx react-native run-android
Here is the full warning message:
warn No apps connected. Sending "devMenu" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.
info Opening developer menu...
Tried adb reverse tcp:8081 tcp:8081 but didn't help. The emulator was working fine. What can go wrong here?
Note: Answer targets only those visitors, who are facing this issue after successfully running once on device
npx react-native run-android
//once its installed on device next time just do
npx react-native start
installs app at your device on first run. I was facing same issue only when I tried npx react-native run-android second time.
So I used npx react-native start then
I just opened my latest app installed by last run and its working and showing me the updates as well

react-native run-android error metro server

I'm doing a react-native app.
When I launch my app with react-native start or npm run start and react-native run-android, it install on my phone the app but don't launch it automatically and when I launch it by myself, I have this error :
Can you help me I don't know what is my problem ?
thank
I think your phone and your computer are not connected to the same network

Building and installing the app on the device react-native window and android

I just started with react-native.
But I have a problem with the replay of the project. I use the command react-native run-android, this annoys me an error see capture.
The problem was resolution. I almost opened two console: one I compile with
npm start
and the other run
react-native run-android