I get this error when trying to debug an Android application on Android Studio (v.0.4.4):
Error running <appname> [assembleDebug]: Unable to open debugger port : java.net.SocketException "Socket closed"
The application is compiled and can be transferred to the phone using adb. No problem with adb; I can install / control logcat etc. I can load another project and debug it just fine. I come back to this and it is still broken. Thus, to eliminate the problem with the PC (actually Linux vm works under windows), install Android Studio, etc. I rebooted this vm and host.
I had this problem last year and I “fixed it” and then uninstalling Eclipse (I suspected that maybe he was trying to get the same socket).
I spent some time searching on Google and trying, but they have no meaning.
The problem arose around the time I released a signed, augmented release build. Until then, I was just running a debug build. However, I believe that all I did to create this version of the assembly was to edit build.gradle and configure Android Studio to automatically subscribe apks. I have since reverted the changes to build.gradle, but the problem remains.
I do not see the corresponding errors in any Android Studio log files; as if this exception is being captured, reported on the screen, but not registered anywhere.
Hopefully someone who reads this can suggest a few things to change this that I missed.
intellij-idea android-studio
Dr Eval Feb 13 '14 at 21:48 2014-02-13 21:48
source share