Android app crashes when trying to connect a debugger

Some of them, only some of my applications are broken, when I try to connect the Android Studio debugger, I get this error:

Disconnected from the target VM, address: 'localhost:8602', transport: 'socket'

I tried restarting Windows and Android Studio and My Nexus, nothing works.

I am using the latest version of the Android SDK, Build Tools, ...

Part of the log after this failure:

01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] Runtime aborting...
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] Aborting thread:
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] "Jit thread pool worker thread 0" prio=5 tid=2 WaitingForDebuggerSend (still starting up)
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422]   | group="" sCount=0 dsCount=0 obj=0x0 self=0xec00d000
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422]   | sysTid=18213 nice=9 cgrp=default sched=0/0 handle=0xf2aa5920
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422]   | state=R schedstat=( 2419166052 199636564 1513 ) utm=213 stm=28 core=5 HZ=100
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422]   | stack=0xf29a7000-0xf29a9000 stackSize=1022KB
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422]   | held mutexes= "abort lock"
+4
source share
3 answers

I had the same issue on Android Studio 3.0 on Mac. The solution got this answer , basically you need to disable Instant Run (although I haven't used it):

On Mac OS X:

  • Android Studio
  • Preferences
  • Assembly, execution, deployment
  • Instantrun
  • " " "...".

? . " ", , , " - Instant Run Issue..." .

+3

, , , , , .....

  • .
  • (Build β†’ Clean Project)

!

, .

0

I solve the same problem a few months ago using this, please try once:

Switch to

  • Tools
  • Android
  • enable adb integration, this must be checked when you are in debugging. try to remove and check again.
  • finally restart android studio or add the moibile plug-in device.

Hope this works.

-1
source

Source: https://habr.com/ru/post/1666821/


All Articles