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

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

问题描述

我使用的是Android工作室(测试版)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的工作室和我的电脑
  • 杀戮,并从终端开始ADB服务器
  • 重新启动设备

有没有人遇到过这个?请帮助,因为它是推动我有点疯了...

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

更新:我想这已安装Android的工作室我的笔记本电脑,它是做同样的事情!我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工作室1.0 RC2同样的问题。该设备监视器显示应用程序的名称,但在Android的工作室的的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.

我通过检查工具/安卓/启动亚行整合,然后重新启动ADB解决了这一问题。

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

有一个简单的方法是将调试任何应用程序,如果亚行整合被禁用,Android的Studio将提示您启用。

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

您必须启用亚行整合启动调试。你想这样做?

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

点击是的,当然。

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

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