React native android failed to load JS bundle


Environment:
OS: macOS Sierra 10.12.6
Node: 8.3.0
Yarn: 0.27.5
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted = > installed)
react: ^ 16.3.0-alpha.0 = > 16.3.1
react-native: 0.55.0 = > 0.55.0

< H2 > Steps to Reproduce < / H2 >

1:react-native init Test
2:cd Test
3:react-native run-andorid
use android virtual genymotion google nexus 6p-7.1.0

< H2 > Expected Behavior < / H2 >

run normal like ios is ok.

< H2 > Actual Behavior < / H2 >

if release is ok.

Unable to load script from assets "index.android.bundle".make sure you bundle is packaged correctly.....

clipboard.png
clipboard.png
clipboard.png


check whether the following IP is correct.


because of watchman
the
command is as follows
rm-rf / usr/local/var/run/watchman/root-state
reference: https://github.com/facebook/r.

.
Menu