[英]Android App crashes while trying to attach debugger
當我嘗試連接Android Studio調試器時,我的一些應用程序崩潰了一些,然后我收到此錯誤:
Disconnected from the target VM, address: 'localhost:8602', transport: 'socket'
我嘗試重新啟動Windows和Android Studio和My Nexus,沒有任何作用。
我使用的是最新版Android SDK,Build Tools,...
此次崩潰后的部分日志:
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] Runtime aborting...
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] Aborting thread:
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] "Jit thread pool worker thread 0" prio=5 tid=2 WaitingForDebuggerSend (still starting up)
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x0 self=0xec00d000
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] | sysTid=18213 nice=9 cgrp=default sched=0/0 handle=0xf2aa5920
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] | state=R schedstat=( 2419166052 199636564 1513 ) utm=213 stm=28 core=5 HZ=100
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] | stack=0xf29a7000-0xf29a9000 stackSize=1022KB
01-16 09:08:26.967 18208-18213/? A/art: art/runtime/runtime.cc:422] | held mutexes= "abort lock"
我在Mac上的Android Studio 3.0中遇到了完全相同的問題。 解決方案來自這個答案 ,基本上你需要禁用Instant Run(盡管我還沒有使用它):
在Mac OS X下:
有一個“運行時出現問題?” 消息顯示在設置面板中。 我點擊“重新啟用並激活額外的日志記錄”,重現崩潰,然后立即報告使用“幫助 - 報告即時運行問題...”選項。
幾個月前我解決了同樣的問題,使用這個,請試一次:
去
- 工具
- 安卓
- 啟用adb集成,必須在調試時進行檢查。 嘗試取消選中並再次檢查。
- 終於重新啟動android studio或者upluged然后插入moibile設備。
希望它有效。
這可能聽起來真的很愚蠢,但經過幾個小時的嘗試並重新開始我能做的一切,真正解決問題的是......
而已!!
希望這可以幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.