The phone can't connect to Android Studio, the solution
The window system is window10
1. adb devices command to view
If it prompts that adb is not an internal or external command, the reason is that the environment variable of adb is not configured.
After configuration, verify with adb
If adb devices has the following situation
First adb version to check the version
The version is 1.0.39, which is relatively high. You can download a low-level version, such as
1.0.32,
Attached address: click to open the link
After decompression, replace the highlighted part of the image below with the files in platform-tools in sdk
2. Continue to adb devices
Now a new problem has appeared
Why is this, don't worry about the officer, then look down
First run the command
adb nodaemon server
This is due to port 5037 being occupied
Run the command again to see who is occupying port 5037
netstat -ano | findstr "5037"
This pid of 10212 is the culprit. Now our purpose is very clear, we just need to kill this process.
3. Under the window10 system
Open the task manager and find the details
Then find the corresponding pid, click the arrow above the pid to sort
Mine was occupied by Master Lu, I uninstalled Master Lu directly, haha, I hope I can help you