前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【错误记录】Android Studio 调试 华为手机 不显示 Logcat 日志 ( Fail to acquire dataAnalyzerService | HarmonyOS 鸿蒙系统 )

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

作者头像
韩曙亮
发布2024-04-20 08:46:20
790
发布2024-04-20 08:46:20
举报

一、报错信息

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

报错信息如下 :

代码语言:javascript
复制
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.

核心报错信息 :

代码语言:javascript
复制
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 日志了 ;

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2024-04-14,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一、报错信息
  • 二、解决方案
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档