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.
See original GitHub issueOn my Iphone, React Native Debugger does not work.
With emulator there is no problem. But when I use my Iphone, If I click reload button in Chrome React Native Debugger it is not working and it throws below error.
I can see logs on my Chrome React native debugger but it is not stable.
Warn in Metro bundler console:
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.
Real device is connected. My all devices use same Wireless network.
React Native version:
System: OS: macOS 10.15.5 CPU: (8) x64 Intel® Core™ i7-4770HQ CPU @ 2.20GHz Memory: 110.77 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.1 - /usr/local/bin/node Yarn: Not Found npm: 6.14.6 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.0 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 28, 29 Build Tools: 28.0.3, 29.0.2, 29.0.3 System Images: android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.6/11E708 - /usr/bin/xcodebuild Languages: Java: 1.8.0_232 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2
Steps To Reproduce
- Connect IOS device (IOS 13.6) to device.
- Validate real device connection on XCode
- Start app on real device
- Debugger and metro bundler starts
- Press reload button in debugger and get above error in metro bundler console
Issue Analytics
- State:
- Created 3 years ago
- Reactions:46
- Comments:81
Top GitHub Comments
Ok I solved this issue "No apps connected. " (on Android Emulator). Please follow this steps (only for Android) :
Open MainApplication.java and remove
import com.facebook.react.BuildConfig;
Reset metro bundler cache :
npx react-native start --reset-cache
Remove Android assets cache :
cd android && ./gradlew clean
Relaunch metro server :
npx react-native run-android
And see the magic 🎉
If you have an error like
Invariant Violation: Module AppRegistry is not a registered callabel module
, scroll on your terminal to see the root cause.React Native is a real piece of work.