facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.23k stars 625 forks source link

Disconnected After Successful Install Android App React Native #1336

Open HafizHamza19 opened 2 months ago

HafizHamza19 commented 2 months ago

Reload Functionality does not work. Showing This Message. Info Reloading connected app(s)... warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.

You can see in this image build successfully done and app install in device but not launch automatically and reload not working.

image

React Native Version 0.75.2 Metro Version 0.80.10

Project Running cmd:

npx react-native start --reset-cache npx react-native run-android --mode=devDebug --appId=myAppPackage

For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 19s 355 actionable tasks: 25 executed, 330 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

info Run CLI with --verbose flag for more details. info Reloading connected app(s)... warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.

Note: Application running perfect through android studio.

NazarenkoAnna2021 commented 2 months ago

Have the same problem after updated react native to 0.75.2.On ios app running well, it's occur only on android

HafizHamza19 commented 2 months ago

@NazarenkoAnna2021 yes it occurs only on android. iOS app running perfectly.

JanHmmr commented 1 month ago

Same Issue here

kkkasio commented 1 month ago

i have same problema here! my app has updated from 0.66.5 to 0.75.3

android app run fine! ios build is ok, but not connect to dev server (metro)

Screenshot 2024-09-17 at 23 27 14
alimurad-1 commented 1 month ago

I am facing the same issue as @kkkasio, any leads on this one