编译报错:hvigor ERROR: Error, Schema validate failed.
hvigor ERROR: Error, Schema validate failed.
Detail: Please check the following fields.
{
instancePath: ‘buildOption.arkOptions’,
keyword: ‘enum’,
params: {
allowedValues: [
‘apPath’,
‘hostPGO’,
‘types’,
‘obfuscation’,
‘buildProfileFields’,
‘runtimeOnly’
]
},
message: ‘must be equal to one of the allowed values’,
location: ‘D:/HMOS_base_OH/Camera/product/phone/build-profile.json5:45:20’
}
{
instancePath: ‘buildOption.arkOptions’,
keyword: ‘propertyNames’,
params: { propertyName: ‘aotCompileMode’ },
message: ‘property name must be valid’,
location: ‘D:/HMOS_base_OH/Camera/product/phone/build-profile.json5:45:20’
}
in hvigorfile: D:\HMOS_base_OH\Camera\product\phone\hvigorfile.ts
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
编译报错hvigor ERROR: Error, Schema validate failed
1410浏览 • 1回复 待解决
ERROR: Schema validate failed.
682浏览 • 1回复 待解决
Error: Install eTS 3.1.0.0 failed.
3937浏览 • 1回复 待解决
error: install failed due to grant request permissions failed.
4383浏览 • 1回复 待解决
升级IDE后编译报错:hvigor ERROR: Error: TypeError, Cannot read properties of undefined (reading 'getParameter
274浏览 • 1回复 待解决
报错error: install failed due to grant request permissions failed Error while Deploy Hap
2222浏览 • 0回复 待解决
编译构建异常提示hvigor ERROR: Invalid version
3160浏览 • 1回复 待解决
HPM: Search error: { "error": "" } Error: Failed to search:
5096浏览 • 1回复 待解决
错误码code:9568393 error: verify code signature failed.怎么处理?
656浏览 • 1回复 待解决
错误码code:9568359 error: installd set selinux label failed.怎么处理?
328浏览 • 1回复 待解决
hvigor ERROR: project.getModuleDir is not a function
3040浏览 • 1回复 待解决
错误码code: 9568347 error: install parse native so failed.如何处理
1409浏览 • 1回复 待解决
编译构建报错,提示CONFIGURE_SDK_ERROR
744浏览 • 1回复 待解决
HarmonyOS IDE 编译报错:ArkTS ERROR:Duplicate identifier “index”
127浏览 • 1回复 待解决
DevEco Studio调试运行报错INSTALL_PARSE_FAILED_USESDK_ERROR
8945浏览 • 1回复 待解决
HarmonyOS 崩溃无日志,报错信息:terminateSelf failed, error.code: 16000050
546浏览 • 1回复 待解决
ERROR_GET_BUNDLE_INSTALLER_FAILED
3313浏览 • 1回复 待解决
DevEco Studio调试运行报错ERROR_GET_BUNDLE_INSTALLER_FAILED
12049浏览 • 2回复 待解决
“Failure[ERROR_GET_BUNDLE_INSTALLER_FAILED]”
467浏览 • 1回复 待解决
Failure[INSTALL_PARSE_FAILED_USESDK_ERROR]
10891浏览 • 5回复 已解决
该报错是由于build-profile.json5文件中的某些字段不符合规范导致的。最新的API 11废弃了arkOptions中的一些字段,所以编译不通过,删掉对应字段就可以了。