我在 Windows 10 中使用 Android Studio 4.1.3,但在调试时遇到问题。
如果不调试或在调试时使用 Resume Program,应用程序运行正常,但如果尝试单步调试(over、 into、 out)它会崩溃。
它发生在所有应用程序和所有测试平台(真实设备和仿真)和所有代码行中(例如在 MainActivity 的 onCreate 的第一行)。
已经尝试删除所有断点,清理构建,但无法找到如何在此版本中禁用 Instant Run。
日志猫:
04-24 10:50:41.174 24394-24397/com.cormorant.poifinder A/art: art/runtime/jdwp/jdwp_handler.cc:1187] Check failed: modifier_count < 256 (modifier_count=285, 256=256)
04-24 10:50:41.214 24394-24397/com.cormorant.poifinder A/art: art/runtime/barrier.cc:90] Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count
04-24 10:50:41.215 24394-24397/com.cormorant.poifinder A/art: art/runtime/runtime.cc:366] Runtime aborting --- recursively, so no thread-specific detail!
04-24 10:50:41.215 24394-24397/com.cormorant.poifinder A/art: art/runtime/runtime.cc:366]
--------- beginning of crash
04-24 10:50:41.215 24394-24397/com.cormorant.poifinder A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 24397 (JDWP)```
Have anyone any idea? Thanks.