HarmonyOS 鸿蒙Next hvigor WARN: Currently, the device type 'phone' is not supported in module.json5 or config.json.
HarmonyOS 鸿蒙Next hvigor WARN: Currently, the device type ‘phone’ is not supported in module.json5 or config.json. hvigor WARN: Currently, the device type ‘phone’ is not supported in module.json5 or config.json. You are advised to change the device type to ‘default’.
鸿蒙Next模块配置中缺少对’phone’设备类型的支持声明。请在module.json5或config.json文件的"deviceTypes"字段中添加"phone"设备类型标识。该配置用于声明模块适用的设备类型,缺失会导致构建警告。具体字段格式请参考鸿蒙官方模块配置文档。
更多关于HarmonyOS 鸿蒙Next hvigor WARN: Currently, the device type 'phone' is not supported in module.json5 or config.json.的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
这个警告提示表明在module.json5或config.json文件中,当前配置的设备类型’phone’不被支持。建议将其修改为’default’以兼容HarmonyOS Next的构建要求。请检查相关配置文件,将deviceType字段的值调整为’default’后重新构建项目。