Fatal signal 6 (SIGABRT), code -6 in tid 15096 (JDWP)
debug调试的时候报如下错误
调试时报错Thread::Current() != GetDebugThread()
A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread() (Thread::Current()=0xabb30400, GetDebugThread()=0xabb30400) Expected event thread
A/art: art/runtime/runtime.cc:422] Runtime aborting...
原因有一下两种:
-
第一个 这个就是instandRun的开关打开了,关闭即可,关闭Instant Run步骤如下:
选择菜单:File->Settings->Build,Execution,Deployment->Instant Run,将右侧的顶部复选框关闭即可。 -
第二个 就是真机可能调试打印输出开关没打开,这样就不会有打印结果
AndroidStudio3.5以后关闭Instant Run
其实,我试了以上的所有方法,也没有用
Run–>>View Breakpoints..
有人说清除所有断点,我清除了,也没有用。