Run an App on Device (Android Version)


Run an App on Device (Android Version)

Android Debug Bridge (adb) is a versatile command-line tool that allows you to communicate with your device. The adb command facilitates various device actions, such as B. Provides access to the Unix shell where you can install and debug your app and run multiple orders on your device.

How to use ADB on Android?

To use ADB on your Android device, you need to enable the "USB debugging" feature. Open the mobile phone app drawer, tap the Settings icon and select about mobile phone. Scroll to the bottom and tap the Build Number item 7 times. You will see a message indicating that you are a developer.

  1. adb device is your mobile phone displayed? If not, enable developer mode on your phone and connect via USB.
  2. adb Reverse tcp: 8081 tcp: 8081: To link your phone correctly, React Native will detect your phone during the build. (Note: Android Version 5 or later. )
  3. adb Reverse tcp: 8081 tcp: 8081: To link your phone correctly, React Native will detect your phone during the build. (Note: Android Version 5 or later. )
  4. Reactive start: Start a local server for development (required). This server will start automatically if: Please use the latest version of React native.