【错误记录】Android Studio 调试 华为手机 不显示 Logcat 日志 ( Fail to acquire dataAnalyzerService | HarmonyOS 鸿蒙系统 )





一、报错信息



Android Studio 开发中 , 在 华为 HarmonyOS 系统的手机 中 调试 Android 应用程序 , 出现 Logcat 不打印日志的问题 ;

报错信息如下 :

04/14 09:35:12: Launching 'app' on HUAWEI CTR-AL00.
Install successfully finished in 3 s 201 ms.
$ adb shell am start -n "cn.zkhw.client/cn.zkhw.client.LoginActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 7479 on device 'huawei-ctr_al00-PXUYD22628020934'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...
E/Adreno-AppProfiles: Could not find QSPM HAL service
E/OpenGLRenderer: Unable to match the desired swap behavior.

在这里插入图片描述

核心报错信息 :

E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...
E/Adreno-AppProfiles: Could not find QSPM HAL service
E/OpenGLRenderer: Unable to match the desired swap behavior.




二、解决方案



参考操作步骤 : 按照这个步骤操作 , 就可以解决不打印日志的问题 ;

  • 设置完毕后 , 重启手机 , 重启 Android Studio 即可 ;

在这里插入图片描述

图片挂了可参考下面的视频解决问题 :

Android Studio 鸿蒙不打印Logcat日志处理过程


步骤说明 :

① 在拨号界面输入 *#*#2846579#*#* 内容 , 把最后一个 * 打上去之后 , 会自动跳转 , 不需要拨号 ;

在这里插入图片描述

② 进入到 " 工程菜单 " 界面 , 选择 " 后台设置 " 选项 ;

在这里插入图片描述

③ 选择 " 后台设置 " 中的 " AP LOG 设置 " 选项 ;
在这里插入图片描述

④ 在 " AP LOG 设置 " 对话框 中 , 选择 " 打开 " 选项 , 然后关闭对话框即可 ;

在这里插入图片描述

之后就可以打印出 Logcat 日志了 ;

在这里插入图片描述

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值