更新升级 专属应用 系统故障 硬件故障 电脑汽车 鸿蒙刷机 鸿蒙开发Linux教程 鸿蒙开发Linux命令
当前位置:HMXT之家 > 应用开发 > 开鸿蒙IDE工具报Unable to locate hdc_std within the SDK的说明

开鸿蒙IDE工具报Unable to locate hdc_std within the SDK的说明

更新时间:2022-04-23 15:18:13浏览次数:443+次

每次打开鸿蒙IDE工具DevEco Studio都报有:App Launch: Unable to locate hdc_std within the SDK. Please check whether the hdc_std exists.错误,是什么原因呢?

详细问题

每当出现这样的问题,都是重新卸载安装toolchains,关闭重启后,还是一样报错,如何彻底解决?下面是IDE的版本信息:

DevEco Studio 3.0 Beta2

Build Version: 3.0.0.803, built on March 31, 2022

Runtime version: 11.0.13+7-b1751.19 amd64

VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.

Windows 10 10.0

GC: G1 Young Generation, G1 Old Generation

Memory: 1536M

Cores: 12

Registry: external.system.auto.import.disabled=true

解答

这个不是报错,是一个已知道的BUG,会在之后的版本修复此问题,如果是HarmonyOS的工程,不会影响后续的操作。总之,这个错误提示可以忽略,出错的原因是你没安装OpenHarmony SDK,因为你是HarmonyOS开发,只需要HarmonyOS SDK,不需要OpenHarmony SDK。

说明

供参考:

DevEco Studio本地模拟器无法打印日志,System.out和Hilog都不行,ide提示Unable to locate hdc_std within the SDK. Please check whether the hdc_std exists,程序可以正常运行。

\

控制台一大堆东西,应该是不能启动日志的意思:

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

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

E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...

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

E/libdnetwork: GetLocalBasicInfo: get hwddmp service failed

E/: logPower_buf_write not support

E/AGP: BF:AGPWindow OnTop fail

E/: logPower_buf_write not support

E/AGP: VsyncSchedulerAndroid:can not find method postRenderThreadInfo.

E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da

    glUtilsParamSize: unknow param 0x000082da

E/RtgIoctl: RtgIoctl invalid path

E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da

    glUtilsParamSize: unknow param 0x000082da

E/EGL_emulation: eglQuerySurface 313d  EGL_BAD_ATTRIBUTE

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

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

\

toolchains试过重新下载,没用,hdc环境变量也配置了,不能打印日志真的很影响开发。

答:本地模拟器目前暂时不支持打印Hilog日志,hdc_std是在OpenHarmony Sdk的toolchains里面,如果是OpenHarmony的工程,无法在HarmonyOS的设备上运行的。同时,目前无办法可以把数据输出到控制台,只能等之后的版本了。

相关参考:鸿蒙工具中的本地模拟器无法打印日志(打印不了Hilog日志)