Android app crashes with SIGABRT Signal 6 only while Eclipse debugging

て烟熏妆下的殇ゞ 提交于 2019-11-26 22:18:52

android intentionally kills the process because it thinks the UI thread is hung, so its a ANR right. for debugging purposes you can,

Go to Settings -> Developer options and check Show all ANRs.

This will show an App Not Responding dialog for apps running in the background. You can click the Wait button in the dialog to prevent the system from killing your process until the debugger attaches. Note that the dialog is opened automatically for apps running in the foreground. For background apps, you have to enable this option

This started happening to me in android 7.1.1

When attaching debugger my app always crashed, same when starting app in debug mode.

What fixed it for me is simply:

  • Run your app
  • Click on "Mute Breakpoints" in Debug
  • Attach the debugger
  • Re-Click on "Mute Breakpoints" to unmute
  • Done, debugging works again

I had similar issues, but what Sam suggested didn't help - I had to actually REMOVE the breakpoints and then it worked for me.

I had to reinstall android studio one time and the second time it happened it just went away by its self

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!