简体   繁体   English

Android工作室调试停止工作(OSx /三星Galaxy S5)

[英]Android studio debugging stops working (OSx / Samsung Galaxy S5)

After successfully launching or debugging an app, subsequent debugging sessions fail. 成功启动或调试应用程序后,后续调试会话将失败。 Logcat shows a "connection refused" message. Logcat显示“连接被拒绝”消息。

Unplugging and plugging in the cable is a workaround but a list of dead devices builds up in the Devices view 拔出和插入电缆是一种解决方法,但在“设备”视图中会建立一系列死设备 死器

I also sometimes see an "adb not responding dialog" 我有时也看到“adb没有响应对话框” adb没有回复

Environment: 环境:

  • Android Studio Build: 0.5.8, AI-135.1155795, 20140506 Android Studio Build:0.5.8,AI-135.1155795,20140506
  • Android SDK Tools 22.6.3 Android SDK工具22.6.3
  • Android SDK Platform-tools 19.1 Android SDK Platform-tools 19.1
  • OS X 10.9.2 OS X 10.9.2

This problem also affected older version of AS. 此问题也影响旧版本的AS。

I am using XUbuntu and have the same issue, what fixes it for me is clicking on the "Android Device Monitor", then stopping the unresponsive app and rerunning the app back in Android Studio. 我正在使用XUbuntu并遇到同样的问题,为我修复的是单击“Android设备监视器”,然后停止无响应的应用程序并在Android Studio中重新运行应用程序。 This seems to restart adb correctly. 这似乎正确地重启了adb。

If your adb stops responding there is an easy way to reset adb. 如果您的adb停止响应,则可以轻松重置adb。 You need to go to the folder where your android sdk is install, find the location of "adb" and once you are in the folder you can issue the following command. 您需要转到安装android sdk的文件夹,找到“adb”的位置,一旦进入该文件夹,您就可以发出以下命令。

adb kill-server adb start-server adb kill-server adb start-server

升级Android Studio版本,修复了最新的android studio 1.1版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM