为什么 Android Studio 会说“Waiting For Debugger"?如果不调试? [英] Why Android Studio says "Waiting For Debugger" if am NOT debugging?

查看:38
本文介绍了为什么 Android Studio 会说“Waiting For Debugger"?如果不调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Android Studio.从昨晚开始,当我在我的设备上运行我的项目时,出现消息等待调试器".这是一个非常奇怪的行为,因为我不是在调试应用程序.

I am working with Android Studio. Since last night, when I Run my project on my device, appear the message "Waiting For Debugger". It is a very strange behavior because I am not debugging application.

我尝试从我的设备上卸载应用程序,然后在 Android Studio 上按运行.该消息再次出现.

I've tried to uninstall application from my device and press Run on Android Studio. The message appears again.

我已尝试重新启动 Android Studio.该消息再次出现.

I've tried to restart Android Studio. The message appears again.

在我的手机上正确安装应用程序的唯一方法是按调试".该消息出现但它自动关闭.然后应用程序工作正常.

The only way to properly install application on my phone is to press "Debug". The message appears but its automatically closed. Then application works fine.

我试过了

<application android:debuggable="false" />

...但仍然显示消息.

... and still the message appears.

LogCat 说:

E/InputDispatcher﹕ channel ~ Channel is unrecoverably broken and will be disposed!
E/Launcher﹕ Error finding setting, default accessibility to not found: accessibility_enabled

关于第一条错误行,有人说重命名某些资源后可能会出现问题.但这不是我的情况.

Regards on first error line, someone says that the problems can starts after renaming of some resource. But its not my case.

关于第二个错误行,......我不知道.我真的不知道我的 IDE 会发生什么.

Regards on second error line, ... I don't know. I really don't know what happens to my IDE.

推荐答案

我过去和今天都遇到过这个问题.在我的情况下,问题是通过设备重启来解决的.干净启动后,我可以再次运行该应用程序,并且不会出现等待调试器"提示.

I've ran into this issue in the past and again today. In my case the problem is resolved by a device reboot. After a clean boot I can again run the application and the "Waiting for Debugger" prompt does not appear.

这篇关于为什么 Android Studio 会说“Waiting For Debugger"?如果不调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆