Android dalvikvm线程仍然暂停。无法启动调试

时间:2015-02-27 20:50:43

标签: android debugging illegalargumentexception launching

我有以下问题。我有一个稳定版本的Android应用程序,并开始添加代码。在调试应用程序的编辑版本时,它会抛出非法的参数异常。所以我决定评论所有新代码,但之后我无法启动应用

logcat显示该线程仍然被挂起,我尝试了几个解决方案,我发现删除所有断点并清理项目。

问题:我无法启动我的应用

任何人都可以解释为什么会发生这种情况以及如何解决它?

控制台:

[2015-02-27 21:42:16 - CaveExplorer] ------------------------------
[2015-02-27 21:42:16 - CaveExplorer] Android Launch!
[2015-02-27 21:42:16 - CaveExplorer] adb is running normally.
[2015-02-27 21:42:16 - CaveExplorer] Performing com.jeroenb.caveexplorer.CaveExplorerActivity activity launch
[2015-02-27 21:42:16 - CaveExplorer] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2015-02-27 21:42:18 - CaveExplorer] Uploading CaveExplorer.apk onto device '901b509d'
[2015-02-27 21:42:19 - CaveExplorer] Installing CaveExplorer.apk...
[2015-02-27 21:42:31 - CaveExplorer] Success!
[2015-02-27 21:42:32 - CaveExplorer] Starting activity com.jeroenb.caveexplorer.CaveExplorerActivity on device 901b509d
[2015-02-27 21:42:32 - CaveExplorer] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.jeroenb.caveexplorer/.CaveExplorerActivity }
[2015-02-27 21:42:32 - CaveExplorer] Attempting to connect debugger to 'com.jeroenb.caveexplorer' on port 8600

logcat的:

02-27 21:43:00.597: D/ActivityThread(5318): handleBindApplication:com.jeroenb.caveexplorer
02-27 21:43:00.597: D/ActivityThread(5318): setTargetHeapUtilization:0.75
02-27 21:43:00.597: D/ActivityThread(5318): setTargetHeapMinFree:2097152
02-27 21:43:00.607: I/System.out(5318): Sending WAIT chunk
02-27 21:43:00.607: W/ActivityThread(5318): Application com.jeroenb.caveexplorer is waiting for the debugger on port 8100...
02-27 21:43:00.617: I/dalvikvm(5318): Debugger is active
02-27 21:43:00.807: I/System.out(5318): Debugger has connected
02-27 21:43:00.807: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:01.007: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:01.217: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:01.417: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:01.617: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:01.817: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:02.017: I/System.out(5318): waiting for debugger to settle...
02-27 21:43:02.217: I/System.out(5318): debugger has settled (1437)
02-27 21:43:02.287: I/Adreno-EGL(5318): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LNX.LA.3.5.2.2_RB1.04.04.04.087.028_msm8974_LNX.LA.3.5.2.2_RB1__release_AU ()
02-27 21:43:02.287: I/Adreno-EGL(5318): OpenGL ES Shader Compiler Version: E031.24.00.15
02-27 21:43:02.287: I/Adreno-EGL(5318): Build Date: 07/31/14 Thu
02-27 21:43:02.287: I/Adreno-EGL(5318): Local Branch: 
02-27 21:43:02.287: I/Adreno-EGL(5318): Remote Branch: quic/LNX.LA.3.5.2.2_rb1
02-27 21:43:02.287: I/Adreno-EGL(5318): Local Patches: NONE
02-27 21:43:02.287: I/Adreno-EGL(5318): Reconstruct Branch: AU_LINUX_ANDROID_LNX.LA.3.5.2.2_RB1.04.04.04.087.028 +  NOTHING
02-27 21:43:02.337: D/OpenGLRenderer(5318): Enabling debug mode 0
02-27 21:43:03.547: D/dalvikvm(5318): threadid=1: still suspended after undo (sc=1 dc=1)

堆栈跟踪,我希望它有所帮助

DalvikVM [localhost:8600]   
    Thread [<1> main] (Suspended (exception IllegalArgumentException))  
        <VM does not provide monitor information>   
        Choreographer.doCallbacks(int, long) line: 584  
        Choreographer.doFrame(long, int) line: 544  
        Choreographer$FrameDisplayEventReceiver.run() line: 747 
        Handler.handleCallback(Message) line: 733   
        Choreographer$FrameHandler(Handler).dispatchMessage(Message) line: 95   
        Looper.loop() line: 136 
        ActivityThread.main(String[]) line: 5146    
        Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]  
        Method.invoke(Object, Object...) line: 515  
        ZygoteInit$MethodAndArgsCaller.run() line: 732  
        ZygoteInit.main(String[]) line: 566 
        NativeStart.main(String[]) line: not available [native method]  
    Thread [<10> Binder_2] (Running)    
    Thread [<9> Binder_1] (Running) 

0 个答案:

没有答案