React native Android real-Machine debug

Source: Internet
Author: User

First step: Connect the tablet to the computer and turn on "USB debugging"

All devices can be viewed by command

ADB devices# View all devices

Step two: On the real Machine Debug Android project

In general, open the project in Android Studio, click Run Project, then select the connected device, click OK to run the project on the device, but only if the device has "USB debugging" turned on

Step three: Run the project

You can debug a project by opening a command with a command

React-native run-android

At this point, the real machine should be able to open the project

Fourth step: Open the Debug menu

Mobile devices can open the Debug menu by shaking a device, or you can open the Debug menu.

But because it is flat, shaking a shake is not too convenient, you can run the command on the computer side to open the Debug menu, but sometimes can not open the Debug menu

82

Reference: "React native development" React native application device operation (Running) and commissioning (debugging) (3)

React native Android real-Machine debug

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.