uniapp project connected to mobile phone debugging

1. Modify phone options

1. Turn on developer mode

  • Find "Developer Options" at the bottom of the phone's more settings [If you don't have this, first find "About Phone" in More Settings --> "Software Version Number", click "Software Version Number" several times in a row]

 

 "You are already in developer mode, you don't need to do this" appears, and the developer mode has already been turned on

2. Find the phone settings and select other settings

 3. Go to other settings page and select developer options

 4. Check USB debugging

5. Set the mobile phone and computer to belong to the same network

  • Connect the mobile phone to the hotspot of the computer, and then see the running device and other words displayed under "Run to mobile phone or emulator (N)" in HBuilderX, which means that it is successful, and you can run your uni-app project. 

  •  Connect computer to mobile hotspot

 2. Use HBuilderX to run to the mobile phone

  • Choose to run to phone or emulator (N) --> choose to run to Android App Dock

Guess you like

Origin blog.csdn.net/m0_71933813/article/details/129897263