Recently, because of the need to check the source code of some projects, Android Studio 4.0 does not support opening the same project to two windows. I hope they continue to work hard to improve. There are still many places to complain. This IDE tool is really not that friendly, but Considering that the official release is only to 4.0, we will use it.
As mentioned above, I used another version of Android Studio 3.6.3 and opened it. As a result, there will always be window dissonance in this window, and I can’t see it after a long time. But I will just watch.
Next, in the original work window, I clicked debug, and as a result, the above-mentioned problem of unable to bind the debug port appeared.
It is also very convenient to solve:
that is to close other versions of Android Studio, if you still have this problem, then open the Terminal command line under Android Studio,
netstat -ano|findstr "8631"
The result will then appear:
TCP 127.0.0.1:8604 0.0.0.0:0 LISTENING 8500
TCP 127.0.0.1:8604 127.0.0.1:51663 ESTABLISHED 8500
TCP 127.0.0.1:51663 127.0.0.1:8604 ESTABLISHED 19860
Then we shut them down, of course &