Solution to “can’t bind to local 8602 for debugger” error in Android

Solution to "can't bind to local 8602 for debugger" error in Android

In order to adapt to the development of Android 5.0, the JDK was upgraded to 1.7, and then I wanted to debug the program in ADT (the real machine I connected). The results are as follows:

According to the error message, I guess the debug port is occupied. I thought it was caused by upgrading 1.7. Some people on stackoverflow said that it would be good to remove 1.7 and reinstall 1.6. Think about it. Android 5.0 requires JDK to be upgraded to 1.7. Suddenly, I found that I was still running Android studio and also connected to my mobile phone. If I caught the culprit, it must be this product! Turn off Android studio decisively, then clean the project in ADT, and re run the program. If you encounter the above situation, it may not be that Android studio occupies the debug port, or other processes occupy it. Please do not doubt that it is the problem of jdk1.7.

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>