Install and configure Android studio
About how to configure and use real machine debugging
https://blog.csdn.net/qq_ 35251502/article/details/80770448
Software download address
android studio
sdk :
After the above is completed
Click on the steps below
In Android studio
tools -> Android SDK->
First, switch to sdkplatforms and select the system version number of your phone (my android 9.0), so choose Android 9.0
Switch to SDK tools again, check Google usbdriver and click Finish (if you don't download in advance, you will also be prompted to download and download automatically)
The address of the driver I downloaded here is as follows
C:\Users\webcyh\AppData\Local\Android\Sdk\extras\google\usb_ driver
There are still some steps to link the mobile phone:
On the computer:
First, open computer management - > Device Manager - > portable device - > right click and click Update - > Browse. See the driver location above
C:\Users\webcyh\AppData\Local\Android\Sdk\extras\google\usb_ driver
complete
next
Set phone
My mobile phone is Huawei. My steps are as follows. Different mobile phone settings are different. You can search online
Open Settings - > System - > about mobile phone - > hard click on the version number to enter the developer mode - > return to the system layer - > developer options - > enable USB debugging - > and check the prompt when linking USB - > select file transfer
After completing the above steps
In Android studio, click
run->run as "app"
At this time, start compiling and executing, and wait a little to see the software preview effect on the mobile phone