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

查看:346
本文介绍了为什么我看到“没有可调试的应用程序"?我的应用程序运行时在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.

打开Android监视器,

Open Android Monitor,

启用该选项后,一切都将正常运行,并且您可以看到应用程序的程序包名称.

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

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

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