What is the error in DEBUG: java.net.socketExeption "socket Closed"?

Asked

Viewed 412 times

0

Yesterday my study APP ran smoothly, I finished, I did BKP and I went home...

Today opened and went straight to check everything... but, just like, I received this error in the debug console.....

Unable to open debug port (127.0.0.1:57709): java.net.socketExeption "socket Closed"

There are several tutors on the net, saying that there is another process using this port, so,
1) I opened COMMAND and gave one:

netstat -a 

But there’s nothing using that door...
I closed the Android Studio and repeated the process... and there’s nothing using this port EVEN.

Re-opened all and error continues...

2) ANOTHER TEST I TOOK, was to shut down the firewall completely, to make sure... but did not give any result..
The error continues...

What could it be? I have no idea what to do...

Here is my work canvas:

inserir a descrição da imagem aqui

  • Shows some line in the code where it is giving error?

  • No. nothing wrong anywhere... other co-workers.. in the same project... has no problem... and is exactly the same version....

  • you execute the project directly on a physical device?

  • Yes! but remembering that the error... happens a little BEFORE sending to CEL... still in the APP compilation.. in Android Studio, In the summer IT APPEARS, right after clicking on the button "Debug app""

  • My suggestion is that you are running the wrong Gradle task. In your print, in the toolbar, it is running rakuseki[signingReport], must choose app in place.

  • what weight has come out of me now..

Show 1 more comment

1 answer

3


No android, to reference the local network, you must use the address: 10.0.2.2:8080 because the android emulator runs on a virtual machine, therefore, 127.0.0.1 or "localhost" will be the same address as the emulator.

  • Mmmm... I don’t use the emulator... I use a cell phone... and in this my device (android) as much as in my micro (Win10), I don’t configure the IP.... they take direct from DHCP.... network... (wifi or 4G) !!!

  • @Camilayamamoto Can you send a print of your android Studio? It can be the main screen same

  • Ready! I asked the question! Thanks for the pasciencia!

  • @Camilayamamoto Check this link (http://stackoverflow.com/questions/21766228/unable-to-open-debugger-port-java-net-socketexception-socket-closed) if it helps, I understand it’s enough that you change the Debugger mode

  • simmm! That’s right!!!!!! brigadeaaaaa!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.