Failed to launch emulator. Reason: Emulator exited before boot - react-native

I am installing React Native according to this website
https://reactnative.dev/docs/environment-setup
it's very useful until I run the command react-native run-android, this is the error I receive:
Failed to launch emulator. Reason: Emulator exited before boot..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
after i launch an emulator manually project build successfully but application is installed but not open?
create new emulator
increase space of emulator
wipe data of emulator
cold boot emulator
uninstall application
clean gradle

Related

After updating to Expo SDK 41 from Expo SDK 40, Android Studio won't start emulator

I go to start emulator on my mac m1 and it'll bring up the phone emulator however my project is not uploaded to the phone.
I am getting this error in the terminal:
› Opening on Android...
› Opening emulator Pixel_5_API_33
› Opening exp://172.16.100.190:19000 on Pixel_5_API_33
Couldn't start project on Android: Error running adb: adb: failed to install /Users/me/.expo/android-apk-cache/Exponent-2.19.7.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
› Press ? │ show all commands
This download is taking longer than expected. You can also try downloading the clients from the website at https://expo.dev/tools
⠦ Installing Expo Go 2.19.7 on Pixel_5_API_33
The ios emulator seems to be working fine
I just solved this issue for myself, it appears your emulator doesn't have enough storage assigned to it.
Here's how you can increase the storage on your emulator
For my emulator I increased the device Internal Storage to 8GB and enabled No SDCard. This has allowed me to emulate my expo react-native app on Android while running on my M1 silicon chip MacBook.

react-native appcenter-crashes does not log issues

I currently using react-native 0.65.
But crashes does not show on ms appcenter
I followed these instruction
https://learn.microsoft.com/en-us/appcenter/sdk/getting-started/react-native#3-add-the-app-center-sdk-modules
https://learn.microsoft.com/en-us/appcenter/sdk/crashes/react-native
I build an APK throwing an error
Then installed it on a device.
The app crashed but no item log registered on appcenter.
Any solutions for this?
Thank you

Expo can't connect to android-studio emulator (Ubuntu 20.04)

When I run "npm start" and then 'a'/ "sudo expo start --android" the connection to the android emulator fails.
the error I get is:
Couldn't start project on Android: Error running adb: No Android connected device found, and no emulators could be started automatically.
Please connect a device or create an emulator (https://docs.expo.io/workflow/android-studio-emulator).
Then follow the instructions here to enable USB debugging:
https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.
While trying to debug it I found:
The app is running on web browser
While launching the AVD on emulator on android-studio I get on android studio events:
Emulator: E0810 10:41:04.480101550 89662 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"#1597045264.480085451","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
I Made sure that .bashrc includes the right SDK path: "export ANDROID_SDK=/home/user/Android/Sdk", and followed this link
I'll mention that the emulator already ran my app, I'm not sure what changed the configuration and made the app not running on android-studio emulator. I re-install android-studio but it's still have no connction

React-Native App giving and error while loading in my physical device

I build up a simple app with react native and its nicely work in my emulator. Then i tried to run it in smartphone using USB debug option. I can see the app in my phone under apps list, but when i try to open it for further developments its shows this error. Any idea what i am missing for react-native run-android in a physical device? I am working in a windows PC
error
"Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running packager server"

why won't run my react-native android app in my custom phone emulator

it's worked but suddenly without any reason stop working
my error in cmd is this:
com.android.ddmlib.InstallException: Failed to establish session