在升级Android Studio到2.3之后,调试控制台不会显示消息。

时间:2022-05-23 20:26:06

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:

我刚刚将Android Studio的版本升级到2.3和gradle到版本3.3,我失去了一个最有用的特性,即调试控制台中的日志。当我使用调试模式运行应用程序时,调试控制台中显示的唯一日志是:

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?

在那之后,什么都没有显示出来。你知道怎么解决这个问题吗?

5 个解决方案

#1


9  

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

我不知道该如何解决这个问题(我希望有人能尽快找到答案),但这里有一个选择:

  1. Open the "Android Monitor" tab
  2. 打开“Android监视器”选项卡。
  3. Select the "logcat" tab
  4. 选择“logcat”选项卡
  5. In the upper-right corner of the Android Monitor tool window, click on the drop-down menu and select "Show only selected application"
  6. 在Android监控工具窗口的右上角,单击下拉菜单,选择“只显示选定的应用程序”

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显示器的输出现在几乎和调试时一样。您可以通过点击logcat左侧侧边栏中的设备来选择要显示的信息。

You'll end up with something like this:

你会得到这样的结果:

在升级Android Studio到2.3之后,调试控制台不会显示消息。

#2


3  

go to File / Setting / Build, Execution, Deployment / Instant Run enable Log extra ...

转到文件/设置/构建、执行、部署/即时运行支持日志…

now you have the log in Android Monitor tab (alt+6)

现在你有了登录安卓监控标签(alt+6)

#3


2  

i had the same problem. it worked for me after i turned off Instant Run. After you turned it off run Debug. Then go at the Bottom to "Android Monitor" and then click on "logcat". Here is a description how to turn Instant Run off: Instant run in Android Studio 2.0 (how to turn off)

我遇到了同样的问题。在我关闭了即时运行后,它对我起了作用。在您关闭它之后运行调试。然后点击底部的“Android监视器”,然后点击“logcat”。下面是一个描述如何将即时运行关闭:Android Studio 2.0中的即时运行(如何关闭)

#4


0  

I have't the same problem. See this bug report:

我没有同样的问题。看到这个错误报告:

Issue 236525: Android Studio 2.3 and Gradle 3.3 update: com.android.tools.fd.runtime.InstantRunService Error: Not found; no service started.

第236525号:Android Studio 2.3和Gradle 3.3更新:com. Android .tools.f . runtime.instantrunservice错误:未找到;没有服务开始。

If it produce other errors you need to make a new simple project with the necessary parameters and try to run it on your device. It was helped for me. Good luck!!

如果它产生其他错误,您需要使用必要的参数创建一个新的简单项目,并尝试在您的设备上运行它。这对我有帮助。祝你好运! !

I think this bug will fix in short time.

我想这个bug会在很短的时间内解决。

#5


0  

i dont know the exact solution.but there is way to get the debug results

我不知道确切的答案。但是有办法得到调试结果。

  • go to Android Monitar tab.
  • 转到Android Monitar标签。
  • and set option to No filters at top ,right side of the tab.
  • 并且设置选项在顶部没有过滤器,右边的标签。
  • and then start run/debug you will get all the results and also the whats are the errors in you application.
  • 然后开始运行/调试,你会得到所有的结果,你的应用程序中也会出现错误。

better understand purpose i post a picture 在升级Android Studio到2.3之后,调试控制台不会显示消息。

更好地理解我发布图片的目的。

#1


9  

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

我不知道该如何解决这个问题(我希望有人能尽快找到答案),但这里有一个选择:

  1. Open the "Android Monitor" tab
  2. 打开“Android监视器”选项卡。
  3. Select the "logcat" tab
  4. 选择“logcat”选项卡
  5. In the upper-right corner of the Android Monitor tool window, click on the drop-down menu and select "Show only selected application"
  6. 在Android监控工具窗口的右上角,单击下拉菜单,选择“只显示选定的应用程序”

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显示器的输出现在几乎和调试时一样。您可以通过点击logcat左侧侧边栏中的设备来选择要显示的信息。

You'll end up with something like this:

你会得到这样的结果:

在升级Android Studio到2.3之后,调试控制台不会显示消息。

#2


3  

go to File / Setting / Build, Execution, Deployment / Instant Run enable Log extra ...

转到文件/设置/构建、执行、部署/即时运行支持日志…

now you have the log in Android Monitor tab (alt+6)

现在你有了登录安卓监控标签(alt+6)

#3


2  

i had the same problem. it worked for me after i turned off Instant Run. After you turned it off run Debug. Then go at the Bottom to "Android Monitor" and then click on "logcat". Here is a description how to turn Instant Run off: Instant run in Android Studio 2.0 (how to turn off)

我遇到了同样的问题。在我关闭了即时运行后,它对我起了作用。在您关闭它之后运行调试。然后点击底部的“Android监视器”,然后点击“logcat”。下面是一个描述如何将即时运行关闭:Android Studio 2.0中的即时运行(如何关闭)

#4


0  

I have't the same problem. See this bug report:

我没有同样的问题。看到这个错误报告:

Issue 236525: Android Studio 2.3 and Gradle 3.3 update: com.android.tools.fd.runtime.InstantRunService Error: Not found; no service started.

第236525号:Android Studio 2.3和Gradle 3.3更新:com. Android .tools.f . runtime.instantrunservice错误:未找到;没有服务开始。

If it produce other errors you need to make a new simple project with the necessary parameters and try to run it on your device. It was helped for me. Good luck!!

如果它产生其他错误,您需要使用必要的参数创建一个新的简单项目,并尝试在您的设备上运行它。这对我有帮助。祝你好运! !

I think this bug will fix in short time.

我想这个bug会在很短的时间内解决。

#5


0  

i dont know the exact solution.but there is way to get the debug results

我不知道确切的答案。但是有办法得到调试结果。

  • go to Android Monitar tab.
  • 转到Android Monitar标签。
  • and set option to No filters at top ,right side of the tab.
  • 并且设置选项在顶部没有过滤器,右边的标签。
  • and then start run/debug you will get all the results and also the whats are the errors in you application.
  • 然后开始运行/调试,你会得到所有的结果,你的应用程序中也会出现错误。

better understand purpose i post a picture 在升级Android Studio到2.3之后,调试控制台不会显示消息。

更好地理解我发布图片的目的。