HarmonyOS 鸿蒙Next 启动demo提示logPower_print not support

HarmonyOS 鸿蒙Next 启动demo提示logPower_print not support 在启动demo时,项目可以正常启动但是会提示

Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat Output” section of the “Debugger” settings page.

E/: logPower_print not support

E/libc: Access denied finding property “persist.device_config.runtime_native.use_app_image_startup_cache”

E/m.example.hell: LoadAppImageStartupCache enabled : 1

Unknown bits set in runtime_flags: 0x8000

E/BehaviorCollectManager: Fail to acquire dataAnalyzerService…

E/: [ZeroHung]ZrhungIoctl: open /dev/hwlog_exception failed

[ZeroHung]zrhung_get_config: Get config failed for wp[0x0008]

E/: [ZeroHung]ZrhungIoctl: open /dev/hwlog_exception failed

[ZeroHung]zrhung_get_config: Get config failed for wp[0x0102]

E/OpenGLRenderer: RenderThread: progress name = [com.example.hello], get AGPService failed!

E/libdnetwork: GetLocalBasicInfo: get hwddmp service failed

E/: logPower_buf_write not support

cke_171.png


更多关于HarmonyOS 鸿蒙Next 启动demo提示logPower_print not support的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

感觉像是和设备镜像有关,换个设备试试,如果使用的是远程模拟器的话,换个api版本的设备试试!

更多关于HarmonyOS 鸿蒙Next 启动demo提示logPower_print not support的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


针对帖子标题“HarmonyOS 鸿蒙Next 启动demo提示logPower_print not support”的问题,这里给出直接相关的解答:

在HarmonyOS鸿蒙系统中,如果遇到启动demo时提示“logPower_print not support”的错误,这通常意味着当前的系统环境或demo代码中使用了不被支持的日志打印函数。HarmonyOS的日志系统有其特定的API,而logPower_print可能并非官方API或者在当前系统版本中未被启用。

解决此问题的方法可能包括:

  1. 检查API兼容性:确认logPower_print函数是否属于HarmonyOS的官方API,或者是否为特定硬件或系统版本所独有。

  2. 替换日志函数:如果logPower_print不是官方推荐或支持的API,考虑替换为HarmonyOS提供的标准日志函数,如HILOG_INFOHILOG_ERROR等。

  3. 检查系统配置:确保系统配置正确,且所有必要的组件和服务都已正确安装和启用。

  4. 查阅文档:参考HarmonyOS的官方文档,了解关于日志打印的正确方法和最佳实践。

如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html

回到顶部