Running the react native running tutorial ‘awesomeproject’ on Android causes the red screen of ‘unable to download JS bundle’

When I am following this Facebook tutorial and running react native run Android from the awesomeproject directory, I display a red screen on the Android simulator with the following text:

I don't know if it is relevant, but I also received a bunch of syntaxerrors on the server that const is invalid in strict mode (I didn't change anything in the original code), and received the following errors on start:

Upgrade the updated data to node v4.1.1 to get rid of const syntax errors, but I still get the following errors on the react packager:

resolvent:

I managed to solve this problem. For anyone else who encounters this problem, reinstalling watchman can help me: brew uninstall watchman brew install watchman

My application is now running

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>