For the last two days the app I\'m working on is showing up as [DEAD] in logcat and when I try to launch the app through the run button in Android Studio all seems fine, exc
My solution: replace the debugging equipment. I've had this problem recently, and I've been struggling with it for a long time. I use as 3.0, the computer i7+16G+ SSD, the configuration will not be a problem. During the period, I tried to restart as, the computer, have no effect.The online method tried some, but it didn't work. I always thought it was the as problem, and then I was able to debug the machine. The debug phone is a 7.0 system. After root, it enters the adb shell and finds that the command line does not respond. The phone shell has been stuck and the card dies and the card dies. The as run is going to be directly stuck there. The key as interface is not clickable, and the bug should be given to as.
It shows that you fully stopped your application from your device or May you are getting some errors and Unfortunately Stopping Application.
Just try to unplug device or close emulator and Connect again.
The above error is due to
java.io.IOException
which causes the current adb-connection to disconnect and connect to the new adb-connection request made by another software .
java.io.IOException: An established connection was aborted by the software in your host machine
When you start an adb client, the client first checks whether there is an adb server process already running. If there isn't, it starts the server process. When the server starts, it binds to local TCP port 5037 and listens for commands sent from adb clients—all adb clients use port 5037 to communicate with the adb server.
The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port. Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections.
Above information can also be seen from its documentation http://developer.android.com/tools/help/adb.html
When a new application uses the same connection,your Android studio app reports DEAD in logcat. To resolve the issue,use the adb kill-server command
adb kill-server //Terminates the adb server process.
and then rerun your application.