HarmonyOS 鸿蒙Next 选择了"runtimeOS": "OpenHarmony",请问如何跑起来

HarmonyOS 鸿蒙Next 选择了"runtimeOS": “OpenHarmony”,请问如何跑起来 在studio 里设置了"runtimeOS": “OpenHarmony”,在鸿蒙手机上跑不起来,

报错>To run and debug the Harmony device, configure the HarmonyOS runtime.

所以我在想,OpenHarmony不是从HarmonyOS里抽出空来的,为啥不能在鸿蒙手机上跑???

如果要运行,请问在哪里可以运行起来???

官方连个文档都没有

4 回复

OpenHarmony — 是不能运行在手机上的,如果想运行,要运行在openharmony设备上,比如一体机

更多关于HarmonyOS 鸿蒙Next 选择了"runtimeOS": "OpenHarmony",请问如何跑起来的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


把runtimeOS改成HarmonyOS 试一下呢

买个开发板,刷OpenHarmony系统就能跑起来

要在HarmonyOS鸿蒙Next上使用"runtimeOS": "OpenHarmony"跑起来,首先需要确保开发环境已配置好。安装DevEco Studio,并确保安装了OpenHarmony SDK。创建一个新项目时,在config.json文件中指定"runtimeOS": "OpenHarmony"。然后,编写应用代码,并使用DevEco Studio进行编译和构建。最后,通过DevEco Studio将应用部署到目标设备上运行。确保目标设备支持OpenHarmony运行时环境。

回到顶部