【问题标题】:Android Studio logcat only shows Firebase AnalyticsAndroid Studio logcat 仅显示 Firebase Analytics
【发布时间】:2020-11-29 14:38:54
【问题描述】:

几天前开始发生这种情况,我已经尝试了很多解决方案,但没有任何帮助。我尝试了什么:

  • 使缓存无效/重新启动
  • 重启logcat
  • 撤销 USB 调试授权
  • 选择“无过滤器”
  • 重新安装应用程序
  • 在详细、错误和调试之间切换日志级别
  • 从开发者选项中增加日志缓冲区大小

Logcat(日志级别:详细 | 仅选定的应用程序):

2020-11-29 20:03:05.165 18576-18615/com.tashila.mywalletfree.debug V/FA: App measurement collection enabled
2020-11-29 20:03:05.168 18576-18615/com.tashila.mywalletfree.debug V/FA: App measurement enabled for app package, google app id: com.tashila.mywalletfree.debug, 1:615339790521:android:a54ce30e1047dc49fdcb68
2020-11-29 20:03:05.169 18576-18615/com.tashila.mywalletfree.debug I/FA: App measurement initialized, version: 33025
2020-11-29 20:03:05.169 18576-18615/com.tashila.mywalletfree.debug I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2020-11-29 20:03:05.170 18576-18615/com.tashila.mywalletfree.debug I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.tashila.mywalletfree.debug
2020-11-29 20:03:05.170 18576-18615/com.tashila.mywalletfree.debug D/FA: Debug-level message logging enabled
2020-11-29 20:03:05.218 18576-18608/com.tashila.mywalletfree.debug V/FA: onActivityCreated
2020-11-29 20:03:05.255 18576-18615/com.tashila.mywalletfree.debug V/FA: Connecting to remote service
2020-11-29 20:03:05.286 18576-18615/com.tashila.mywalletfree.debug V/FA: Connection attempt already in progress
2020-11-29 20:03:05.300 18576-18615/com.tashila.mywalletfree.debug V/FA: Connection attempt already in progress
2020-11-29 20:03:05.635 18576-18615/com.tashila.mywalletfree.debug I/FA: Tag Manager is not found and thus will not be used
2020-11-29 20:03:05.672 18576-18615/com.tashila.mywalletfree.debug V/FA: Connection attempt already in progress
2020-11-29 20:03:05.969 18576-18615/com.tashila.mywalletfree.debug V/FA: Activity resumed, time: 1034755035
2020-11-29 20:03:06.027 18576-18615/com.tashila.mywalletfree.debug V/FA: Connection attempt already in progress
2020-11-29 20:03:06.030 18576-18615/com.tashila.mywalletfree.debug V/FA: Connection attempt already in progress
2020-11-29 20:03:06.710 18576-18615/com.tashila.mywalletfree.debug D/FA: Connected to remote service
2020-11-29 20:03:06.711 18576-18615/com.tashila.mywalletfree.debug V/FA: Processing queued up service tasks: 6
2020-11-29 20:03:11.837 18576-18615/com.tashila.mywalletfree.debug V/FA: Inactivity, disconnecting from the service
2020-11-29 20:05:02.316 18576-18681/com.tashila.mywalletfree.debug V/FA: Recording user engagement, ms: 116300
2020-11-29 20:05:02.329 18576-18681/com.tashila.mywalletfree.debug V/FA: Connecting to remote service
2020-11-29 20:05:02.579 18576-18681/com.tashila.mywalletfree.debug V/FA: Activity paused, time: 1034871354
2020-11-29 20:05:02.696 18576-18681/com.tashila.mywalletfree.debug V/FA: Connection attempt already in progress
2020-11-29 20:05:02.700 18576-18681/com.tashila.mywalletfree.debug D/FA: Connected to remote service
2020-11-29 20:05:02.702 18576-18681/com.tashila.mywalletfree.debug V/FA: Processing queued up service tasks: 2

从“运行”选项卡记录

11/29 20:50:59: Launching 'app' on Xiaomi Redmi Note 8.
App restart successful without requiring a re-install.
$ adb shell am start -n "com.tashila.mywalletfree.debug/com.tashila.mywalletfree.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 23766 on device 'xiaomi-redmi_note_8-142ae1cf'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
V/FA: App measurement collection enabled
V/FA: App measurement enabled for app package, google app id: com.tashila.mywalletfree.debug, 1:615339790521:android:a54ce30e1047dc49fdcb68
I/FA: App measurement initialized, version: 33025
    To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
    To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.tashila.mywalletfree.debug
D/FA: Debug-level message logging enabled
V/FA: Connecting to remote service
V/FA: onActivityCreated
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
I/FA: Tag Manager is not found and thus will not be used
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 1037630815
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 6
V/FA: Inactivity, disconnecting from the service
V/FA: Connecting to remote service
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 1
V/FA: Inactivity, disconnecting from the service
V/FA: Recording user engagement, ms: 72971
V/FA: Connecting to remote service
V/FA: Activity paused, time: 1037703790
V/FA: Connection attempt already in progress
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2

我应该怎么做才能解决这个问题?这几天我一直在努力解决这个问题。请帮忙

【问题讨论】:

  • 如果您运行应用程序并选择底部的“运行”选项卡,它会显示正确的日志吗? logcat 的默认设置是“仅显示选定的应用程序”,也只显示 firebase 日志?
  • @simoneviozzi 是的,只有 firebase 日志

标签: android debugging adb logcat


【解决方案1】:

万一有人再次遇到这个问题,我也遇到了同样的问题,并尝试了上面列出的所有方法(但没有帮助)。在这种情况下,这似乎不是 Android Studio 或 Logcat 的问题,而是设备本身的问题(您可以通过连接不同的设备/模拟器来验证这一点,日志应该可以正常显示)。为我解决这个问题的是更新设备的操作系统(重置也可能有帮助)。

【讨论】:

    猜你喜欢
    • 2021-12-13
    • 1970-01-01
    • 2015-05-03
    • 1970-01-01
    • 2015-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-30
    相关资源
    最近更新 更多