我正在使用Android Studio.从昨晚开始,当我在设备上运行项目时,出现消息"Waiting for Debugger".这是一种非常奇怪的行为,因为我没有调试应用程序.
我试图从我的设备上卸载应用程序,然后在Android Studio上按"运行".该消息再次出现.
我试图重启Android Studio.该消息再次出现.
在我的手机上正确安装应用程序的唯一方法是按"调试".消息出现但自动关闭.然后应用程序正常.
我试过了
<application android:debuggable="false" />
Run Code Online (Sandbox Code Playgroud)
......仍然会显示消息.
LogCat说:
E/InputDispatcher? channel ~ Channel is unrecoverably broken and will be disposed!
E/Launcher? Error finding setting, default accessibility to not found: accessibility_enabled
Run Code Online (Sandbox Code Playgroud)
关于第一个错误行,有人说在重命名某些资源后可能会出现问题.但这不是我的情况.
关于第二个错误线,......我不知道.我真的不知道我的IDE会发生什么.
我正在使用带有Gradle构建的Android工作室.我在设备上测试我的应用程序,让Android Studio和Gradle构建应用程序并将其安装在设备上.在安装新版本之前,如何告诉Gradle或Android Studio从设备上卸载应用程序?
在我将android studio更新为2.0之后,我无法在我的设备上调试应用程序(华硕Zenphone 2).在Android工作室中单击调试图标后,我在调试选项卡中看到以下消息.
Android Studio UI中调试选项卡中的消息
---------------------------------------------------------------
Waiting for application to come online: packagename
Waiting for application to come online: packagename
Waiting for application to come online: packagename
Waiting for application to come online: packagename
Run Code Online (Sandbox Code Playgroud)
我一直看到Alert Dialog标题为"Waiting for Debugger"和Force close按钮.
我搜索了但似乎只有两个谷歌的结果消息.
我重启Android工作室,检查手机上的开发者设置......
有没有人遇到过这个问题.请帮我.我无法运行模拟器,因为我的mac太迟了.先感谢您.
我正在学习使用 Android Studio 3.1.4 在 WearOS 下开发表盘。我的调试器有问题。
看来我无法直接在调试模式下运行应用程序(Shift-F9)。如果这样做,尽管已在手表(模拟器或真实手表(Huawai Watch 2))上进行了授权调试,但我会系统地收到以下消息:
08/24 09:03:00: Launching wearmodule
$ adb push /path/wearmodule/build/outputs/apk/debug/wearmodule-debug.apk /data/local/tmp/com.example.wearmodule
$ adb shell pm install -t -r "/data/local/tmp/com.example.wearmodule"
Success
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
Connecting to com.example.wearmodule
Waiting for application to start debug server
Waiting for application to come online: com.example.wearmodule.test | com.example.wearmodule
Connecting to com.example.wearmodule
Waiting for application …Run Code Online (Sandbox Code Playgroud) 在 Android API 24 中,自定义手机 7.0.0
当我以正常模式启动应用程序时,它运行良好,但每当我切换到调试模式时,它都会在 logcat 和keep showing Waiting for Debugger Dialog.
W/ActivityThread:应用程序 com.xxx.xxxxx 正在等待端口 8100 上的调试器... I/System.out:发送 WAIT 块
到目前为止我尝试过的:
问题:一次又一次地执行 Kill 是一项乏味的任务,因为在调试模式下每次都会发生这种情况
问题:这再次临时工作,进行调试(第二次或第三次)将再次给出相同的对话框
我不敢相信设备重启是唯一的解决方案。
问题?
这个问题还有其他解决方案吗?