社区4.0Release应用编译时报错

D:\backup\n022262\node\node-16.20.1\node.exe D:\backup\n022262\.hvigor\project_caches\51881010c49be65805a24b786b95a4fb\workspace\node_modules\@ohos\hvigor\bin\hvigor.js --sync -p product=default --parallel --incremental --daemon
> hvigor ERROR: Schema validate failed.
     Detail: Please check the following fields.
{
  instancePath: 'app',
  keyword: 'required',
  params: { missingProperty: 'compileSdkVersion' },
  message: "must have required property 'compileSdkVersion'",
  location: 'D:/backup/n022262/Desktop/myhap/applications_camera/build-profile.json5:17:11'

{
  instancePath: 'app',
  keyword: 'required',
  params: { missingProperty: 'compatibleSdkVersion' },
  message: "must have required property 'compatibleSdkVersion'",
  location: 'D:/backup/n022262/Desktop/myhap/applications_camera/build-profile.json5:17:11'

{
  instancePath: 'app.products[0]',
  keyword: 'enum',
  params: { allowedValues: [ 'name', 'signingConfig', 'bundleName' ] },
  message: 'must be equal to one of the allowed values',
  location: 'D:/backup/n022262/Desktop/myhap/applications_camera/build-profile.json5:19:8'

{
  instancePath: 'app.products[0]',
  keyword: 'propertyNames',
  params: { propertyName: 'compileSdkVersion' },
  message: 'property name must be valid',
  location: 'D:/backup/n022262/Desktop/myhap/applications_camera/build-profile.json5:19:8'

{
  instancePath: 'app.products[0]',
  keyword: 'enum',
  params: { allowedValues: [ 'name', 'signingConfig', 'bundleName' ] },
  message: 'must be equal to one of the allowed values',
  location: 'D:/backup/n022262/Desktop/myhap/applications_camera/build-profile.json5:19:8'

{
  instancePath: 'app.products[0]',
  keyword: 'propertyNames',
  params: { propertyName: 'compatibleSdkVersion' },
  message: 'property name must be valid',
  location: 'D:/backup/n022262/Desktop/myhap/applications_camera/build-profile.json5:19:8'

> hvigor ERROR: BUILD FAILED in 15 ms 

Process finished with exit code -1

IDE使用的是:DevEco Studio 4.0 Release(Build Version: 4.0.0.600, built on October 17, 2023)

有大神知道是什么原因吗?

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐