我遇到了以下无法调试Android应用程序的情况。我可以运行它但无法调试它。我开始全新的项目复制了一切,它工作(意味着能够调试),但又得到了这一点。我在模拟器和手机上都尝试过,但没有用。我使用的是Android Studio 0.5.1
它从一开始就失败了。我觉得它没有进入MainActivity。应用程序启动的那一刻,我得到“不幸btbnie已经停止工作”的消息。感谢任何帮助/方向...
03-19 21:10:24.334 31799-31799/com.learn.btnine.btbnine I/System.out? Sending WAIT chunk
03-19 21:10:24.334 31799-31799/com.learn.btnine.btbnine W/ActivityThread? Application com.learn.btnine.btbnine is waiting for the debugger on port 8100...
03-19 21:10:25.034 31799-31809/com.learn.btnine.btbnine I/art? Debugger is active
03-19 21:10:25.144 31799-31799/com.learn.btnine.btbnine I/System.out? Debugger has connected
03-19 21:10:25.144 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:25.344 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:25.544 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:25.744 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:25.944 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:26.144 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:26.344 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:26.544 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:26.754 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:26.954 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:27.154 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:27.354 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:27.554 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:27.754 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:27.954 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:28.154 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:28.354 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:28.554 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:28.754 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:28.954 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:29.154 31799-31799/com.learn.btnine.btbnine I/System.out? waiting for debugger to settle...
03-19 21:10:29.364 31799-31799/com.learn.btnine.btbnine I/System.out? debugger has settled (1455)
03-19 21:10:29.504 31799-31809/com.learn.btnine.btbnine A/art? art/runtime/stack.cc:322] Expected: java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) Found: java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader)
03-19 21:10:29.524 31799-31809/com.learn.btnine.btbnine A/art? art/runtime/stack.cc:322] Expected: java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) Found: java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader)
03-19 21:10:29.524 31799-31809/com.learn.btnine.btbnine A/art? art/runtime/runtime.cc:203] Runtime aborting --- recursively, so no thread-specific detail!
03-19 21:10:29.524 31799-31809/com.learn.btnine.btbnine A/art? art/runtime/runtime.cc:203]
03-19 21:10:29.524 31799-31809/com.learn.btnine.btbnine A/libc? Fatal signal 6 (SIGABRT) at 0x00007c37 (code=-6), thread 31809 (JDWP)
答案 0 :(得分:1)
我得到了同样的事情:ClassLoader错误后跟SIGABRT,但仅在运行调试器时。
对我来说,从ART转到Dalvik修复了它。