几天前它开始发生,我已经尝试了许多解决方案,但没有任何帮助。我尝试:
- 使缓存无效/重新启动
- 重新启动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
我该怎么做才能解决这个问题?我已经挣扎了好几天了。请帮帮我
2条答案
按热度按时间biswetbf1#
如果有人再次遇到这个问题,我也有同样的问题,并尝试了上面列出的一切(没有帮助).在这种情况下,这似乎不是Android Studio或Logcat的问题,而是设备本身的问题(您可以通过连接不同的设备/模拟器来验证这一点,日志应该会显示良好).什么修复了这个对我来说是更新设备的操作系统(重置可能也有帮助).
ha5z0ras2#
我可以通过在开发者选项中配置注册表缓冲区大小来修复这个问题。当我出现错误时,它被停用了。将它设置为1MB,logcat又开始正常工作了。