Skip to content
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

android cannot load latest bundle from url with RN 0.57.3 #21811

Closed
sunny635533 opened this issue Oct 16, 2018 · 7 comments
Closed

android cannot load latest bundle from url with RN 0.57.3 #21811

sunny635533 opened this issue Oct 16, 2018 · 7 comments
Labels
Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@sunny635533
Copy link

sunny635533 commented Oct 16, 2018

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.3
Binaries:
Node: 10.4.1 - /usr/local/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5014246
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.0-alpha.8af6728
react-native: 0.57.3

Description

i have a native app need to intergrate RN in it. I update RN version to 0.57.3, i cannot load bundle from url when i press Dev's reload button. It didnt load any view. Like this:

image

Wait a long time, it still didnt show anything.But it can load latest bundle when press R in IOS , only android didnt. I tried to set my host ip in Simulator ,also didnt work.
In android, i see some log at logcat :

image

my package.json:

image
image

So I decided to reduce my RN's version to 0.55.4.
All is normal! Android can load bundle from Dev's reload button. I guess the problem only occurs in RN 0.57. I hope to know why I cannot load bundle in android. Please tell me.

@sunny635533 sunny635533 changed the title android cannot load latest bundle from url android cannot load latest bundle from url with RN 0.57.3 Oct 16, 2018
@react-native-bot react-native-bot added Platform: Android Android applications. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. labels Oct 16, 2018
@haipengz
Copy link

Same issue, In Android, it cannot load js bundle from Dev reload button with RN 0.56+, but it works perfectly well with RN 0.55.
My RN version is 0.56.0, now in Android the debug pkg is broken, and I can only package a release pkg to continue development. It has caused a lot of inconvenience.

@sunny635533
Copy link
Author

@haipengz I tried to "react-native init Demo", android can load js bundle. Demo project is "react": "16.6.0-alpha.8af6728" and "react-native": "0.57.3", it works perfect! Now i confuse about the broblem very much. Maybe not related to the RN version.

@jonatslab
Copy link

jonatslab commented Oct 18, 2018

Maybe this issue #18962 can help you.

specifically : this comment

@sunny635533
Copy link
Author

@jonatslab it already has "babel-preset-react-native": "4.0.0".

@stale
Copy link

stale bot commented Jan 16, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 16, 2019
@sunny635533
Copy link
Author

sunny635533 commented Jan 17, 2019

it seems has been fixed, although i don't know why.@Stale

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 17, 2019
@hramos hramos removed the Bug Report label Feb 6, 2019
@grabbou grabbou closed this as completed Mar 19, 2019
@grabbou
Copy link
Contributor

grabbou commented Mar 19, 2019

I am glad your issue is resolved @sunny635533. Reproducing brownfield setups (integration into native apps) isn't something we can easily make.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

6 participants