附加调试器时Eclipse会挂起

时间:2012-04-03 11:07:06

标签: android eclipse debugging

我在可调试模式下运行eclipse。我已在AndroidManifest.xml中以true进入可调试模式。但是,Eclipse在可调试模式下运行时会挂起。我在Windows 7 64位上使用Android API级别16运行Eclipse 1.4.1。可能出错?

  1. 我试图重启Eclipse。
  2. Killed adb32.exe然后重新启动Eclipse。
  3. 检查调试配置中的所有内容。

  4. [2012-04-04 15:02:05 - Droid1] ------------------------------
    [2012-04-04 15:02:05 - Droid1] Android Launch!
    [2012-04-04 15:02:05 - Droid1] adb is running normally.
    [2012-04-04 15:02:05 - Droid1] Performing com.androidbook.droid1.Droid1Activity activity launch
    [2012-04-04 15:02:05 - Droid1] Automatic Target Mode: Preferred AVD 'AVD' is available on emulator 'emulator-5554'
    [2012-04-04 15:02:05 - Droid1] Uploading Droid1.apk onto device 'emulator-5554'
    [2012-04-04 15:02:06 - Droid1] Installing Droid1.apk...
    [2012-04-04 15:02:38 - Droid1] Success!
    [2012-04-04 15:02:38 - Droid1] Starting activity com.androidbook.droid1.Droid1Activity on device emulator-5554
    [2012-04-04 15:02:41 - Droid1] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.androidbook.droid1/.Droid1Activity }
    [2012-04-04 15:02:42 - Droid1] Attempting to connect debugger to 'com.androidbook.droid1' on port 8615
    

    Logcat输出:

    04-06 15:39:48.417: D/dalvikvm(547): GC_EXPLICIT freed 226K, 5% free 9501K/9927K, paused 70ms+23ms 
    04-06 15:39:48.437: E/StrictMode(547): class com.android.development.DevelopmentSettings; instances=2; limit=1 
    04-06 15:39:48.437: E/StrictMode(547): android.os.StrictMode$InstanceCountViolation: class com.android.development.DevelopmentSettings; instances=2; limit=1 
    04-06 15:39:48.437: E/StrictMode(547): at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1) 
    04-06 15:40:01.927: D/AndroidRuntime(571): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 
    04-06 15:40:01.927: D/AndroidRuntime(571): CheckJNI is ON 
    04-06 15:40:01.927: D/AndroidRuntime(571): CheckJNI is ON 
    04-06 15:40:03.516: D/AndroidRuntime(571): Calling main entry com.android.commands.pm.Pm 
    04-06 15:40:03.587: D/AndroidRuntime(571): Shutting down VM 
    04-06 15:40:03.606: I/AndroidRuntime(571): NOTE: attach of thread 'Binder Thread #3' failed 
    04-06 15:40:03.606: D/dalvikvm(571): GC_CONCURRENT freed 101K, 78% free 463K/2048K, paused 1ms+2ms 
    04-06 15:40:03.616: D/dalvikvm(571): Debugger has detached; object registry had 1 entries 
    04-06 15:40:04.886: D/AndroidRuntime(584): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 
    04-06 15:40:06.836: D/dalvikvm(584): Debugger has detached; object registry had 1 entries 
    

1 个答案:

答案 0 :(得分:0)

您不应该在清单文件中有任何内容进行调试。确保您对正在运行的API级别拥有所有必要的支持,并且您具有将运行该API级别的正确配置的AVD。

右键单击该项目,然后选择Debug As - &gt; Android应用程序。

发生了什么?如果它没有在调试模式下打开,你至少应该在控制台中看到一些东西...错误,例外..他们说什么?