将 Android Studio 升级到 2.3 后,调试控制台不显示消息 [英] Debug console doesn't show messages after upgrading Android Studio to 2.3

查看:60
本文介绍了将 Android Studio 升级到 2.3 后,调试控制台不显示消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 Android Studio 版本升级到 2.3 并将 gradle 升级到版本 3.3,但我失去了最有用的功能之一,调试控制台内的日志.当我以调试模式运行应用程序时,调试控制台中显示的唯一日志是:

I just upgraded the version of Android Studio to 2.3 and gradle to version 3.3 and I lost one of the most usefull features, the logs inside the Debug Console. When I run the app with Debug mode the only Log that's being displayed inside the Debug console is this:

03/03 10:35:40: Launching app Split APKs installed 
$ adb shell am startservice com.myapp.android/com.android.tools.fd.runtime.InstantRunService 
$ adb shell am start -n "com.myapp.android/com.myapp.android.UI.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to com.myapp.android Connected to the target VM, address: 'localhost:8601', transport: 'socket'

之后什么都没有显示.知道如何解决这个问题吗?

After that nothing is being displayed. Any idea how to fix this?

推荐答案

我不知道如何解决这个问题(希望有人能尽快解决),但这里有一个替代方案:

I don't know how to fix this (I hope someone figures it out soon), but here's an alternative:

  1. 打开Android 监视器"标签
  2. 选择logcat"标签
  3. 在 Android Monitor 工具窗口的右上角,单击下拉菜单并选择仅显示选定的应用程序"

Android Monitor 的输出现在几乎与 Debug 的输出相同.您可以通过单击 logcat 左侧边栏中的齿轮来选择在消息之前显示哪些信息.

The output from Android Monitor is now almost the same as what it was with Debug. You can choose what information will be displayed before the messages by clicking the gear in the logcat's left sidebar.

你会得到这样的结果:

这篇关于将 Android Studio 升级到 2.3 后,调试控制台不显示消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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