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

发布时间 2024-01-09 13:49:09作者: 巫山老妖

 

这个工程是OpenHarmony工程,你的设备是HarmonyOS设备。可以按照这个方法试试:

在模块下的build-profile.json5文件中的target数组下添加"runtimeOS": "HarmonyOS",然后重新签名,签名的时候勾选supportHarmony

如图

 重新签名打包就可以运行了