First according to the data step by step set up the environment to run, and then succeeded, very excited, but, Android is not so easy to succeed, or too young
Could not get Batchedbridge, make sure your bundle is packaged correctly
Find the solution is Package.json inside the scripts under the label if there is no bundle-android tag added, thought it would be good
Then there is a mistake, and Baidu, the solution is to run commands directly in the command:
So go to the group to find the great God, the result of the great God did not find, as I met this problem is a lot of people, no way, only on their own, but still have good intentions, there is a kind person also encountered this problem, then he is the document in the side, and then the environment reconfiguration, the results, I also heard his views Reconfigure the environment, the results found a neglected problem, found the problem, happy
Solution:
On the error page, click the Menu key, select Dev Settings, click Dubug Server Host & port for device, set IP and port, cmd command ipconfig locate your native IP followed by port 8081, Then go back to the refresh screen or run it again, OK.
In fact could not get batchedbridge,make sure your bundle is packaged correctly this error there is a situation, is a run, do not know whether to look at the face, Sometimes the above JSON configuration add code or not, how to run all is reported this error, dev settings inside the IP and port is also good, access to/index.android.bundle?platform=android is OK, is to report this mistake, this time you have to see where there is an anomaly, I am currently encountering is assets this directory is not generated, so report this mistake, make I thought is other what reason, this just remember some time configuration is no mess with, solution online also has, Go to the root directory to run the command: react-native bundle--platform Android--dev false--entry-file index.android.js--bundle-output Android/ App/src/main/assets/index.android.bundle--assets-dest android/app/src/main/res/, after re-running your project, OK
React Native Preliminary FAQs