首页 > 解决方案 > Android Studio 的调试器问题

问题描述

我正在学习如何在 Android Studio 下开发表盘。我在调试器上遇到了烦人的问题,这使得使用起来很痛苦。

当我想在调试模式下运行我的脸时,我不断收到这条消息:

...
Waiting for application to come online: com.example.wearmodule.test | com.example.wearmodule
Waiting for application to come online: com.example.wearmodule.test | com.example.wearmodule
Waiting for application to come online: com.example.wearmodule.test | com.example.wearmodule
Waiting for application to come online: com.example.wearmodule.test | com.example.wearmodule
Could not connect to remote process. Aborting debug session.

我似乎唯一的选择是首先在运行模式下执行我的脸,然后将调试器附加到进程。但是,很多时候我不能,因为“确定”按钮是灰色的,如屏幕截图所示:

在此处输入图像描述

幸运的是,当我可以附加一个调试器时,它会在几秒钟/几分钟后断开连接并显示以下消息:

Disconnecting run session: a new debug session will be established.

但没有建立其他会话。这使得调试过程非常不舒服。

我错过了 Android Studio 的配置吗?

编辑:可能值得注意的是,即使我只是尝试运行应用程序,我也经常会Client not ready yet...不断收到消息。在这些情况下,我必须重新启动模拟器。每次尝试运行该应用程序时都会发生这种情况,这让我浪费了很多时间。

标签: androidandroid-studioandroid-debugwatchface

解决方案


推荐阅读