Android Studio 3.1 Logcat prefix not always showing and breaking pretty logger

限于喜欢 提交于 2019-11-28 18:14:52

According to the issue tracker (https://issuetracker.google.com/issues/77305804) it is fixed and is planned for Android Studio 3.2. To quote from the issue tracker:

This change in behavior was inadvertent and I reverted it. The fix will go out in 3.2.

It does not say when this version will be released. But I'll update my answer as soon as I know.

Edit

Android Studio 3.2 is released and my pretty logger is working again!

The observation is correct. In Android Studio 3.1.4 it is also broken. Not only the prefix is not printed always, also complete lines dissappear.

But there is a small workaround:

  1. open the Terminal Window in Android Studio
  2. start a shell in your target:

    C:\directory> adb shell

  3. in that shell start logcat with grep as filter:

    device:/ $ logcat | grep

  4. than you see all filtered entries with all contents

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!