我以可調試模式運行eclipse。我在AndroidManifest.xml
中輸入了可調試模式true
。但是,Eclipse在可調模式下運行時掛起。我在Android 7級的Windows 7 64位上運行Eclipse 1.4.1。有什麼可能是錯誤的?Eclipse在掛接調試器時掛起
- 我試着重新啓動Eclipse。
- 殺死
adb32.exe
然後重新啓動Eclipse。 - 檢查調試配置中的所有內容。
[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
它說它將調試器連接到控制檯窗口時會凍結?嘗試重新啓動計算機只是爲了確保所有的服務和adb實際上重新啓動,如果它仍然卡住考慮重新安裝eclipse ..它只是沒有聽起來像任何已知的日食問題.. – Joe 2012-04-03 12:06:07
我試圖重新啓動我的筆記本電腦 – 2012-04-04 11:03:39