-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native 0.58.X not running on Android Simulator nor Android Device #23349
Comments
Same problem with 0.54.8, It's not loading the bundle from metro, It's loading from You could try But I think that It should be resolved. |
I'm using OSX and facing it too but thanks for the recommendation! I'll give it a try now. Update: Bundled the app with the above command (thanks to @dap1995) and was able to run on the simulator, but it doesn't solve the issue of being able to "communicate" with the metro bundler. |
could you please check react-native version in package.json, and run yarn install. |
I think that the problem is caused by a bug on react-native , cause the version mismatch is due an outdated bundle in |
I think that the problem of being unable to connect to the packager is related to this PR: I managed to fix the "could not connect to development server" problem by applying these changes: |
So I added the |
Hey guys, help me please. How do i remove safely the index.android.bundle to run from Metro Bundler? If i delete the ...bundle then RN shows 'index.android.bundle' error :( |
@andresmtz98 Try this solution: |
🐛 Bug Report
Hi! I have been banging my head against a wall for a while now with this one. As the title mentions, I am using React-Native 0.58.3 and when I try to run on any Android Simulator (regardless if I've installed the app on it before or not) I get a familiar error:
So I tried everything the internet said to do...and more: blow out my node_modules, reset my watchman cache, confirm my build.gradle is forcing the react-native version, etc. I then started to clear the emulator cache, delete the emulator and create a new one, try it on another developer's machine, but to no avail.
Update: I now ran into this issue on a physical device (Samsung Galaxy S7, Version 6.0.1).
To Reproduce
Run react-native version 0.58.3 on an android simulator. Make sure you remove node modules and then reinstall them and restart your metro bundler.
Expected Behavior
The code works.
Environment
The text was updated successfully, but these errors were encountered: