android studio doesn't recognize header

1. Make sure that the usb debugging is turned on on the mobile phone, and there is no problem with the data cable connection

2. If it is still not recognized, ctrl+r opens the command line tool and enter adb

3. If it is displayed as follows, it means that the environment variable of adb is not configured
insert image description here

android studio cannot recognize the real device
4. In the absence of configuration environment variables, you can directly find the path of adb.exe, paste it into the command line, and execute c:/xxx/adb.exe kill-server

5. Restart adb, c:/xxx/adb.exe start-server
6. At this time, check the interface connection device list c:/xxx/adb.exe devices, the display is as follows, indicating that the connection is successful
insert image description here
, or noadb. exe connect 127.0.0.1:62001 try

insert image description here

Guess you like

Origin blog.csdn.net/huangerbian/article/details/127926431