为什么我看到“No Debuggable Applications"?在我的应用程序运行时在 Android Studio Logcat 中? [英] Why do I see "No Debuggable Applications" in Android Studio Logcat while my application is running?

查看:25
本文介绍了为什么我看到“No Debuggable Applications"?在我的应用程序运行时在 Android Studio Logcat 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想过滤 Android Studio Logcat 中显示的内容,以仅显示与我的应用程序相关的内容.我从 logcat 顶部的下拉菜单中选择了 Show only selected applications,如下面的屏幕截图所示:

I wanted to filter what is shown in the Android Studio Logcat to show what is relevant to my application only. I have chosen Show only selected applications from the drop down at the top of the logcat as shown in the following screenshot:

但是在它上面的下拉菜单中,它应该显示正在运行的应用程序(和其他选项),我们可以从中选择我们的应用程序以查看与其相关的日志消息,我看到 No debuggable Applications 作为唯一的选择.

But in the drop down menu above it which is supposed to show running application(s) (and other options) from which we can choose our application to see Log messages related to it only, I see No debuggable Applications as the only option.

为什么?我该怎么做才能解决这个问题?

注意:并不是每次我运行项目时都会发生这种情况.有时它会发生,有时它会从第二个屏幕截图中显示的下拉菜单中自动选择我的应用程序(当我运行它时),并正确过滤结果.

Note: It does not happen every time I run the project. Sometimes it happens, sometimes it automatically selects my app (when I run it) from the drop down menu shown in the second screenshot, and filters the results properly.

推荐答案

打开Android Studio,前往,

Open Android Studio, Go to,

工具-> Android -> 启用 ADB 集成.

Tools-> Android -> Enable ADB Integration.

打开安卓监视器,

启用后,一切都应该正常工作,您可以看到您的应用程序的包名称.

After enabling that, everything should work properly and you can see your package name of your application.

这篇关于为什么我看到“No Debuggable Applications"?在我的应用程序运行时在 Android Studio Logcat 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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