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

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

问题描述

我刚刚将Android Studio的版本升级到2.3,并升级到了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.

您最终会得到这样的东西:

You'll end up with something like this:

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

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