Android enable USB debugging

The developed Android program can be directly debugged on the mobile phone in order to obtain a more realistic running effect.

First, connect the phone to the computer with a USB cable, go to Settings → System → Developer Options → USB Debugging, and turn on the switch at the back, as shown in the figure below:

If it is the first time to connect to the mobile phone for debugging, the following prompt box will pop up, check "Allow" , then there will be no more prompts later, click "Allow", and the USB debugging will be automatically enabled

 After the connection is successful, you can see two devices in the Android Studio device selection drop-down box, one is the virtual phone "Pixel2 API 33" I created before, and the other "Google Pixel 3" is the real phone just connected

Select the mobile phone "Google Pixel 3" we connected to, click the green button behind to start running, and the created APP will automatically run on the mobile phone 

Supongo que te gusta

Origin blog.csdn.net/dm569263708/article/details/129672226
Recomendado
Clasificación