1***@163.com
1***@163.com
  • 发布:2025-05-26 17:04
  • 更新:2025-05-28 08:47
  • 阅读:140

运行鸿蒙时报错提示我更新Deveco Studio,但是已经是最新了

分类:鸿蒙Next

运行鸿蒙的时候报这个,我的Deveco Studio已经是最新版了,不知道跟我在编辑harmony-configs文件夹有关,harmony-configs文件夹我就随便写了几个文件,也不知道对不对

hvigor hvigor client: Starting hvigor daemon.
17:00:48.236 > hvigor Hvigor Daemon started in 275 ms
17:00:48.237 > hvigor ERROR: Failed :entry:default@PreBuild...
17:00:48.237 > hvigor ERROR: Schema validate failed.
17:00:48.237 Detail: Please check the following fields.
17:00:48.237 {
17:00:48.237 instancePath: '',
17:00:48.237 keyword: 'enum',
17:00:48.237 params: { allowedValues: [ 'module' ] },
17:00:48.237 message: 'must be equal to one of the allowed values',
17:00:48.237 location: '/Applications/GS/HaoCe/app/uni-haoce/unpackage/dist/dev/app-harmony/entry/src/main/module.json5:2:2'
17:00:48.237 }
17:00:48.237 {
17:00:48.237 instancePath: '',
17:00:48.237 keyword: 'propertyNames',
17:00:48.237 params: { propertyName: 'targetModuleName' },
17:00:48.237 message: 'property name must be valid',
17:00:48.237 location: '/Applications/GS/HaoCe/app/uni-haoce/unpackage/dist/dev/app-harmony/entry/src/main/module.json5:2:2'
17:00:48.237 }
17:00:48.237 {
17:00:48.237 instancePath: '',
17:00:48.237 keyword: 'enum',
17:00:48.237 params: { allowedValues: [ 'module' ] },
17:00:48.237 message: 'must be equal to one of the allowed values',
17:00:48.237 location: '/Applications/GS/HaoCe/app/uni-haoce/unpackage/dist/dev/app-harmony/entry/src/main/module.json5:2:2'
17:00:48.237 }
17:00:48.237 {
17:00:48.237 instancePath: '',
17:00:48.237 keyword: 'propertyNames',
17:00:48.237 params: { propertyName: 'targetPriority' },
17:00:48.237 message: 'property name must be valid',
17:00:48.237 location: '/Applications/GS/HaoCe/app/uni-haoce/unpackage/dist/dev/app-harmony/entry/src/main/module.json5:2:2'
17:00:48.237 }
17:00:48.237 {
17:00:48.237 instancePath: '',
17:00:48.237 keyword: 'enum',
17:00:48.237 params: { allowedValues: [ 'module' ] },
17:00:48.237 message: 'must be equal to one of the allowed values',
17:00:48.237 location: '/Applications/GS/HaoCe/app/uni-haoce/unpackage/dist/dev/app-harmony/entry/src/main/module.json5:2:2'
17:00:48.238 }
17:00:48.238 {
17:00:48.238 instancePath: '',
17:00:48.238 keyword: 'propertyNames',
17:00:48.238 params: { propertyName: 'isolationMode' },
17:00:48.238 message: 'property name must be valid',
17:00:48.238 location: '/Applications/GS/HaoCe/app/uni-haoce/unpackage/dist/dev/app-harmony/entry/src/main/module.json5:2:2'
17:00:48.238 }
17:00:48.238 > hvigor ERROR: BUILD FAILED in 997 ms
17:00:48.738 文件校验失败,可能是 DevEco Studio 版本过低,建议升级,请参考 开发环境要求
17:00:48.738 运行包制作失败

2025-05-26 17:04 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

你好,请问解决了吗,我遇到同样的问题

  • 1***@163.com (作者)

    解决了,我的是因为我在harmony-configs文件时有参数没配对

    2025-05-28 09:22

  • 1***@qq.com

    回复 1***@163.com: 方便截个图看看么,我是这个字段(compatibleSdkVersionStage)老是报错

    2025-05-28 16:04

要回复问题请先登录注册