Logcat 无法检测应用程序或包名称 [英] Logcat cannot detect app or package names

查看:50
本文介绍了Logcat 无法检测应用程序或包名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Android Studio(测试版)0.8.7,我的 logcat 几个月来一直运行良好.突然间,我的 logcat 无法检测到任何应用程序或包名称.这意味着我无法过滤我正在测试的特定应用程序的消息,这很烦人.典型的 logcat 消息现在如下所示:

I'm using Android Studio (Beta) 0.8.7 and my logcat has been working fine for months. All of a sudden my logcat is unable to detect any app or package names. This means I cannot filter the messages for the particular app I'm testing which is very annoying. Typical logcat messages now look like this:

注意应用程序/包名称应为的问号 (?)...

Notice the question mark (?) where the app/package name should be...

最初我认为这是我的设备,但我已经用我拥有的另一台 android 设备进行了尝试,但我遇到了同样的问题.这是我试过的:

Originally I thought it was my device but I've tried it with another android device that I own and I get the same issue. This is what I've tried:

  • 重新启动 Android Studio 和我的电脑
  • 从终端杀死并启动 ADB 服务器
  • 重新启动设备

有没有人遇到过这种情况?请帮助,因为它让我有点发疯......

Has anyone experienced this before? Help please as it is driving me a little crazy...

更新:我尝试了安装了 android studio 的笔记本电脑,它正在做同样的事情!我大约 95% 确定应用程序/包名称应该在那里而不是问号,因为这是我记住它的方式.还有一个问号,logcat 无法通过应用程序的包名称过滤消息......我过去从未遇到过这个问题,所以它一定一直在工作,所以我不能发疯......

UPDATE: I tried my laptop which has android studio installed and it is doing the same thing! I'm about 95% sure that the app/package name should be there instead of the question mark because that's the way I remember it. Also with a question mark the logcat is unable to filter messages by the app's package name...I never had this problem in the past so it must have been working so I can't be going crazy...

推荐答案

同样的问题与 Android Studio 1.0 RC2.设备监视器显示应用程序名称,但在 Android Studio 的 logcat 面板中,包名称始终是一个问号.

Same problem here with Android Studio 1.0 RC2. The Device Monitor shows the application name but in Android Studio's logcat panel, the package name is always a question mark.

我通过检查工具/Android/启用 ADB 集成然后重新启动 adb 解决了该问题.

I fixed the problem by Checking Tools / Android / Enable ADB Integration and then restarting adb.

一种更简单的方法是调试任何应用程序,如果 ADB 集成被禁用,Android Studio 将提示您启用.

A simpler way to is to Debug any app, if ADB integration is disabled, Android Studio will prompt you to enable.

您必须启用 ADB 集成才能启动调试.你想这样做吗?

You have to enable ADB integration to launch debugging. Do you want to do that?

点击是,当然.

这篇关于Logcat 无法检测应用程序或包名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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