Failed to open debugger port> (127.0.0.1:49723): java.net.SocketException "socket closed"

After updating my AndroidStudio IDE for some time, I can no longer run my app in the emulator. I am getting the following error:

Error starting Android [assembly]: Unable to open debugger port (127.0.0.1:49723): java.net.SocketException "socket closed"

My Android emulator is running in the background, but the IDE just doesn't find its way to the emulator.

Any ideas please?

Edit: I found several possible solutions to the problem here . The advice Eric Lin posted helped me too. (Switching to native debug type.) But I am not developing with C ++ for Android. Java only. Therefore, this decision is very unusual IMHO. Moreover, I have no idea why this problem suddenly appeared (after AS update) and what a common and prompt solution would be ...

+3


source to share





All Articles