React Native Preliminary FAQs

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.