Error Message
Cannot find hvigor node in XXX with task YYY.
Symptom
The module XXX of the task YYY cannot be found.
Possible Causes
The module name is incorrect.
Solution
Correctly configure the module name in hvigorfile.ts.
Error Message
Cannot find dependent hvigor node XXX with task YYY.
Symptom
The module XXX of the dependent task YYY cannot be found.
Possible Causes
The module name is incorrect.
Solution
Correctly configure the module name in hvigorfile.ts.
Error Message
Cannot find hvigor task XXX in module YYY required by ZZZ.
Symptom
The task XXX on which the task ZZZ depends cannot be found.
Possible Causes
The dependent task name is incorrect.
Solution
Correctly configure the dependent task name in hvigorfile.ts.
Error Message
modules' property should be an array in root project build-profile.json5.
Symptom
The modules field in the project-level build-profile.json5 file must be of the array type.
Possible Causes
The modules field is set to a non-array value in the project-level build-profile.json5 file.
Solution
Set modules to a value of the array type.
Error Message
No modules found.
Symptom
The module cannot be found.
Possible Causes
The modules specified in the modules configuration of the project-level build-profile.json5 file are missing.
Solution
Correctly configure the modules field.
Error Message
XXX corresponding to the parameterFile is not find, Check the parameterFile is valid.
Symptom
The XXX file corresponding to the path configured in parameterFile cannot be found. Check whether parameterFile is valid.
Possible Causes
parameterFile configured in the oh-package.json5 file is incorrect.
Solution
1. Correctly configure the parameterFile field in the project-level oh-package.json5 file.
2. Check the corresponding file of parameterFile to ensure that the file exists and is correctly named.
Error Message
Hvigor only works with API version 8 and later versions.
Symptom
Hvigor is only available for API version 8 and later.
Possible Causes
The value of compatibleSdkVersion in the oh-package.json5 file is less than 8.
Solution
Select an SDK of API version 8 or later to create a project.
Error Message
Configure the API version according to the rule of compatibleSdkVersion <= targetSdkVersion <= compileSdkVersion.
Symptom
The API version must be configured according to the rule "compatibleSdkVersion <= targetSdkVersion <= compileSdkVersion."
Possible Causes
The API version does not comply with the preceding rules.
Solution
Correctly configure the compileSdkVersion, compatibleSdkVersion, and targetSdkVersion fields in the project-level build-profile.json5 file to ensure that the values comply with the preceding rules.
Error Message
Invalid app startup configuration XXX in the module YYY: the value of 'srcEntry' or 'configEntry' should be a relative path. At file: ZZZ.
Symptom
The AppStartup configuration XXX in module YYY is incorrect. The value of srcEntry or configEntry must be a relative path.
Possible Causes
The value of configEntry in the ZZZ file or the value of srcEntry under startupTasks is an absolute path.
Solution
Set srcEntry or configEntry to a relative path.
Error Message
Invalid app startup configuration XXX in the module YYY: the suffix of the code file specified by the field 'srcEntry' under 'startupTasks' and 'configEntry' should be ets,ts or js. At file: ZZZ.
Symptom
The AppStartup configuration XXX in module YYY is incorrect. The file name extensions of the code files configured in srcEntry and configEntry under startupTasks must be .ets, .ts, or .js.
Possible Causes
The files configured in the srcEntry or configEntry field under startupTasks of the ZZZ file are not .ets, .ts, or .js files.
Solution
Configure srcEntry or configEntry correctly, ensuring that the corresponding files are .ets, .ts, or .js files.
Error Message
Invalid app startup configuration XXX in the module YYY: the file of 'srcEntry' or 'configEntry' in startupTasks should be the module file where it is configuration. At file: ZZZ.
Symptom
The AppStartup configuration XXX in module YYY is incorrect. The files configured in srcEntry or configEntry must be in the current module directory.
Possible Causes
The files specified by the configEntry field in the ZZZ file or the srcEntry field under startupTasks are not in the current module directory.
Solution
Configure srcEntry or configEntry correctly, ensuring that the files specified are in the current module directory.
Error Message
Invalid app startup configuration XXX in the module YYY: the code file specified by the field 'srcEntry' or 'configEntry' in startupTasks must exist. At file: ZZZ.
Symptom
The AppStartup configuration XXX in module YYY is incorrect. The file configured in srcEntry or configEntry must exist.
Possible Causes
The files specified by the configEntry field in the ZZZ file or the srcEntry field under startupTasks do not exist.
Solution
Configure srcEntry or configEntry correctly, ensuring that the specified files exist.
Error Message
Invalid app startup configuration XXX in the module YYY: the suffix of the code file specified by the field 'srcEntry' in appPreloadHintStartupTasks should be so. At file: ZZZ.
Symptom
The AppStartup configuration XXX in module YYY is incorrect. The file name extension of the files configured in srcEntry under appPreloadHintStartupTasks must be .so.
Possible Causes
The files configured in the srcEntry field under appPreloadHintStartupTasks of the ZZZ file are not .so files.
Solution
Configure srcEntry correctly, ensuring that the corresponding files are .so files.
Error Message
Duplicate name 'XXX' exists in the 'YYY' attribute in the startup configuration file of the 'ZZZ' module.
Symptom
AppStartup configuration conflict: duplicate name value XXX exists for elements under the YYY property in the AppStartup configuration files of module ZZZ and its dependent modules.
Possible Causes
The elements under startupTasks or appPreloadHintStartupTasks in the AppStartup configuration files of module ZZZ and its dependent modules have duplicate name.
Solution
Configure unique name property values for elements under startupTasks or appPreloadHintStartupTasks in the AppStartup configuration files of module ZZZ and its dependent modules.
Error Message
Invalid app startup configuration XXX in the module YYY: the .so file must exist and be correctly configured in the dependency. At file: ZZZ.
Symptom
The AppStartup configuration XXX in module YYY is incorrect. The .so file must exist and be correctly configured in the dependency.
Possible Causes
The .so file specified by srcEntry under appPreloadHintStartupTasks in the ZZZ file does not exist or is not correctly configured in the dependency.
Solution
Correctly configure srcEntry, ensuring that the specified file exists and the dependency is correctly configured in the oh-package.json5 file of the YYY module.
Error Message
The project structure and configuration need to be upgraded before use.
Symptom
The project structure and configuration need to be upgraded.
Possible Causes
You have opened a historical project using DevEco Studio.
Solution
Migrate the historical project as prompted in DevEco Studio.
Error Message
Incompatible types of hvigor modelVersion.
Symptom
The modelVersion type of Hvigor is incompatible.
Possible Causes
The value of modelVersion in hvigor-config.json5 is not of the string type.
Solution
Change the value of modelVersion in hvigor-config.json5 to a string.
Error Message
Incompatible types of oh-package.json5 modelVersion.
Symptom
The modelVersion type in oh-package.json5 is incompatible.
Possible Causes
The value of modelVersion in oh-package.json5 is not of the string type.
Solution
Change the value of modelVersion in oh-package.json5 to a string.
Error Message
The modelVersion in hvigor-config.json5 is XXX,and the modelVersion in oh-package.json5 is YYY.
Symptom
modelVersion is set to XXX in hvigor-config.json5 and modelVersion is set to YYY in oh-package.json5.
Possible Causes
The modelVersion values in the hvigor-config.json5 and oh-package.json5 files are inconsistent.
Solution
Set modelVersion in the hvigor-config.json5 and project-level oh-package.json5 files to the same value.
Error Message
Unsupported modelVersion of Hvigor XXX.
Symptom
modelVersion is set to an unsupported value.
Possible Causes
modelVersion is set to an unsupported value in hvigor-config.json5.
Solution
Set modelVersion to a supported value based on the error message.
Error Message
Unsupported modelVersion of oh-package.json5 XXX.
Symptom
modelVersion is set to an unsupported value.
Possible Causes
modelVersion is set to an unsupported value in oh-package.json5.
Solution
Set modelVersion to a supported value based on the error message.
Error Message
For the OpenHarmony project, you need to configure the compileSdkVersion in the product, at file: %s.
Symptom
compileSdkVersion must be configured in product of an OpenHarmony project.
Possible Causes
compileSdkVersion is not configured in the project-level build-profile.json5 file of an OpenHarmony project.
Solution
Configure compileSdkVersion in the project-level build-profile.json5 file.
Error Message
Unsupported compileSdkVersion XXX.
Symptom
The version set in compileSdkVersion is not supported.
Possible Causes
The version set in compileSdkVersion is not supported.
Solution
Set compileSdkVersion to a supported value based on the error message.
Error Message
Unsupported compatibleSdkVersion XXX.
Symptom
The version set in compatibleSdkVersion is not supported.
Possible Causes
The version set in compatibleSdkVersion is not supported.
Solution
Set compatibleSdkVersion to a supported value based on the error message.
Error Message
Please configure compatibleSdkVersion in the product.
Symptom
compatibleSdkVersion is not configured in product.
Possible Causes
compatibleSdkVersion is not configured.
Solution
Configure the compileSdkVersion field in the project-level build-profile.json5 file based on the error message.
Error Message
Please configure compileSdkVersion in the product.
Symptom
compileSdkVersion is not configured in product.
Possible Causes
compileSdkVersion is not configured when the runtime OS is OpenHarmony.
Solution
Configure the compileSdkVersion field in the project-level build-profile.json5 file based on the error message.
Error Message
According to the compatibility specifications, fa-model project can only support the development of API version 8 or later.
Symptom
According to the compatibility specifications, FA model projects support only API version 8 and later.
Possible Causes
compatibleSdkVersion in the FA model project is less than 8.
Solution
Set compatibleSdkVersion in project-level build-profile.json5 to 8 or larger.
Error Message
According to the compatibility specifications,stage-model project can only support the development of API version 9 or later.
Symptom
According to the compatibility specifications, Stage model projects support only API version 9 and later.
Possible Causes
compatibleSdkVersion in the Stage model project is less than 9.
Solution
Set compatibleSdkVersion in project-level build-profile.json5 to 9 or larger.
Error Message
According to the compatibility specifications, apps of API version XXX or stage mode can only run on devices of API version XXX or later.
Symptom
According to the compatibility specifications, applications targeting API version XXX or using the Stage model can only run on devices with API version XXX or later.
Possible Causes
compatibleSdkVersion configured in project-level build-profile.json5 is later than the device API version.
Solution
Upgrade the device API version to the same or a later version as compatibleSdkVersion, or set compatibleSdkVersion to the same version as the device API.
Error Message
Schema validate failed.
Symptom
Schema verification failed.
Possible Causes
The schema configuration in the configuration file is incorrect.
Solution
Modify the schema configuration based on the error message in different scenarios.
Error Message
Duplicated XXX: YYY.
Symptom
The name-related fields are assigned duplicate values.
Possible Causes
The name-related fields (such as moduleName and targetName) are assigned duplicate values.
Solution
Modify the name-related fields in the corresponding file based on the error message, ensuring that each name is unique.
Error Message
Unable to find or load the default product.
Symptom
The product named default cannot be found or loaded.
Possible Causes
The product named default does not exist in the project.
Solution
Add the product named default to the corresponding file based on the error message.
Error Message
It's not allowed to configure mini-system device when standard-system device exists.
Symptom
Mini-system devices cannot be configured when standard-system devices exist.
Possible Causes
Both standard-system devices and mini-system devices are configured.
Solution
Check whether abnormal device types exist based on the error message file.
Error Message
The device types cannot include multiple mini-system devices.
Symptom
The device type cannot contain multiple mini-system devices.
Possible Causes
The device type contains multiple mini-system devices.
Solution
Configure only one mini-system device for device type based on the reported error message.
Error Message
Mini-system devices cannot be configured in an FA project.
Symptom
The FA model project does not support the configuration of mini-system devices.
Possible Causes
The mini-system device has been configured in the FA model project.
Solution
Remove mini-system devices from the configuration based on the reported error message.
Error Message
Only one default card can be configured in the form_config.json file.
Symptom
Only one default card can be configured in the form_config.json file.
Possible Causes
The form_config.json file contains multiple cards with isDefault set to true.
Solution
Configure only one card with isDefault set to true in the form_config.json file.
Error Message
In the form_config.json file, if the value of the updateEnabled field is true,the updateDuration and scheduleUpdateTime fields cannot be both empty.
Symptom
In the form_config.json file, if updateEnabled is set to true, the updateDuration and scheduleUpdateTime fields cannot be empty at the same time.
Possible Causes
updateEnabled is set to true in the form_config.json file, but updateDuration and scheduleUpdateTime are unconfigured.
Solution
If updateEnabled is set to true, configure the updateDuration or scheduleUpdateTime field.
Error Message
Invalid key: XXX in parameterFile.at YYY.
Symptom
The key XXX in parameterFile in the YYY directory is invalid.
Possible Causes
The corresponding key value does not exist in parameterFile.
Solution
Modify @param:key to ensure that the key value can be found in the corresponding parameterFile.
Error Message
The key: XXX in parameterFile is invalid, only support at(@), slashe(/), letters, digits, dots(.), hyphens(-), and underscores(_). For details, see the package name verification rules.
Symptom
The key XXX in parameterFile is invalid. Only @, slash (/), letters, digits, periods (.), hyphens (-), and underscores (_) are supported. For details, see the package name verification rules.
Possible Causes
key configured in parameterFile does not meet the verification rules.
Solution
Modify key in parameterFile based on the error message to ensure that the key complies with the verification rules.
Error Message
Invalid version: XXX in parameterFile, the version must comply with the semver specifications.
Symptom
The version XXX configured in parameterFile is invalid. The version must comply with the SemVer specification.
Possible Causes
The version configured in parameterFile does not comply with the SemVer specification.
Solution
Correctly configure the version in parameterFile to make sure it complies with the SemVer specification.
Error Message
The value of 'main' must be a .ets, .ts, or .js file.
Symptom
The value of the main field must be a file with .ets, .ts, or .js extension.
Possible Causes
The main field is configured with a file whose file name extension is not .ets, .ts, or .js.
Solution
Check the oh-package.json5 file of the module and correctly configure the main field.
Error Message
Field 'workers' only accepts path ends with '.js', '.ts' or '.ets' but get: XXX.
Symptom
The value of the workers field must be a file with .ets, .ts, or .js extension.
Possible Causes
The workers field is configured with a file whose file name extension is not .ets, .ts, or .js.
Solution
Remove XXX from workers.
Error Message
Lite-wearable devices with API version 9 or later support only JS.
Symptom
Lite wearable projects of API version 9 or later support only JS.
Possible Causes
The ets directory exists in src/main of the module.
Solution
Remove the ets directory from src/main of the module.
Error Message
The module name XXX in build-profile.json5 or hvigorconfig.ts must be same as moduleName in module.json5.
Symptom
The module name in build-profile.json5/hvigorconfig.ts must be the same as that in module.json5.
Possible Causes
The value of name in modules of build-profile.json5/hvigorconfig.ts is inconsistent with that of module.name in module.json5.
Solution
Assign the same value to name in modules of build-profile.json5/hvigorconfig.ts and module.name in module.json5.
Error Message
Only ArkTS project supports custom types.
Symptom
The types field can be configured only in ArkTS projects.
Possible Causes
The types configuration is added to the JS module.
Solution
Switch to the ArkTS module.
Error Message
The custom type's declaration file XXX does not require the suffix YYY.
Symptom
The file XXX specified by the types field does not need the YYY extension.
Possible Causes
The file specified by the types field has the .d.ets or .d.ts name extension.
Solution
Remove the extension .d.ets or .d.ts from the file specified by types field.
Error Message
The suffix of custom type's declaration file 'XXX' is not valid.
Symptom
The file name extension XXX of the types field is invalid.
Possible Causes
The types field is configured with a file whose file name extension is not .d.ets or .d.ts.
Solution
Configure the .d.ets or .d.ts files for the types field.
Error Message
Current module XXX do not support dynamicDependencies.
Symptom
The XX module does not support dynamicDependencies.
Possible Causes
The current project is an FA project, and dynamicDependencies is configured in oh-package.json5.
Solution
Migrate dependencies from dynamicDependencies to dependencies in the configuration file.
Error Message
Invalid default dimension settings in these widgets: XXX.
Symptom
The value of defaultDimension is invalid.
Possible Causes
The value of defaultDimension is not within the range of supportDimensions.
Solution
Set defaultDimension to a value present in supportDimensions.
Error Message
Duplicate permission names detected under "XXX": "YYY".
Symptom
Duplicate permission name YYY is detected in XXX.
Possible Causes
Multiple permissions with the same name are configured in XXX.
Solution
Remove duplicate permissions.
Error Message
The intersection of the system capability sets configured for multiple devices is empty.
Symptom
The intersection of SystemCapability sets configured for multiple devices is empty.
Possible Causes
This error occurs when the SystemCapabilities configured for device types under the custom and general fields in syscap.json have no common capabilities (that is, their intersection is empty).
Solution
Ensure that the intersection of SystemCapabilities defined for device types in both custom and general configurations of syscap.json is not empty.
Error Message
The device type defined in the module.json5 of the module 'XXX' is empty, and the general and custom fields in the syscap.json file are not specified or their values are empty.
Symptom
The deviceTypes field in the module.json5 file of the XXX module is empty, and the general and custom fields in the syscap.json file are also empty.
Possible Causes
The deviceTypes field in the module.json5 file of the XXX module is empty, and the general and custom fields in the syscap.json file are also empty.
Solution
Error Message
Invalid target deviceType.
Symptom
deviceType of the target is invalid.
Possible Causes
The value of deviceType in targets of the build-profile.json5 file is not defined in deviceTypes of the module.json5 file.
Solution
Ensure that the value of deviceType in targets of the build-profile.json5 file is defined in deviceTypes of the module.json5 file.
Error Message
The runtimeOS configuration of the target XXX:YYY does not match the product ZZZ.
Symptom
runtimeOS of the target is different from that of the product.
Possible Causes
runtimeOS configured in the module-level build-profile.json5 file is inconsistent with that in the project-level build-profile.json5 file.
Solution
Ensure that runtimeOS in the project-level build-profile.json5 file is the same as that in the module-level build-profile.json5 file.
Error Message
Invalid product for target XXX.
Symptom
The product specified for the target does not exist.
Possible Causes
The applyToProducts field for a specific target in the project-level build-profile.json5 file is configured with a non-existent product.
Solution
Correctly configure the applyToProducts field for the target in the project-level build-profile.json5 file.
Error Message
The 'ohosTest' target does not need to be packaged into the application. 'ohosTest' target cannot be applied to product.
Symptom
The ohosTest target is excluded from the app bundle and thus cannot be associated with a product.
Possible Causes
The project-level build-profile.json5 file defines a target named ohosTest with applyToProduct set to true.
Solution
Remove the ohosTest target configuration from the project-level build-profile.json5 file.
Error Message
Unknown target XXX.
Symptom
An undefined target is referenced.
Possible Causes
The target is not defined in the build-profile.json5 file.
Solution
Define the target under the targets field in the module-level build-profile.json5 file.
Error Message
BundleName in the project configuration does not match that in the SigningConfigs.
Symptom
The bundleName configured in the project does not match that in the signing material.
Possible Causes
The bundleName used during signing material generation differs from that specified in the app.json5 file or the project-level build-profile.json5 file.
Solution
Error Message
The version number of the module must be a string, but received a XXX.
Symptom
The version field must be a string, but is set to a value of the other type.
Possible Causes
The version field in oh-package.json5 is not formatted as a string.
Solution
Set version to a value of the string type.
Error Message
The name of the module must be a string, but received a XXX.
Symptom
The name field must be a string, but is set to a value of the other type.
Possible Causes
The name field in oh-package.json5 is not formatted as a string.
Solution
Set name to a value of the string type.
Error Message
The deviceType values XXX of XXX in the XXX don't overlap that XXX of XXX in the associated XXX module.
Symptom
The deviceType configuration of the current module has no intersection with that of entryModules.
Possible Causes
In projects developed using the FA model, the deviceType configuration of the current module has no intersection with that of entryModules.
Solution
Modify the deviceType configuration of the current module to ensure at least one overlapping device type with the entry modules.
Error Message
Forms referenced in the config. In the configuration item named 'XXX', the type field does not match between 'module.abilities' and 'module.js'.
Symptom
Duplicate name values are not allowed between abilities and js configurations in the config.json file.
Possible Causes
In projects developed using the FA model, the config.json file contains identical name values in both abilities and js.
Solution
Ensure the name values in abilities and js are unique.
Error Message
XXX is not supported. Change it to a valid version in the available list./Unable to find the XXX in SDK Manager.
Symptom
The SDK version is not supported.
Possible Causes
The configured SDK version does not exist.
Solution
For details about the supported SDK versions, see HarmonyOS Development Suite Versions.
Error Message
The platform version XXX and API version YYY of ZZZ in build-profile.json5 do not match.
Symptom
The value of compatibleSdkVersion, compileSdkVersion, or targetSdkVersion in build-profile.json5 does not match the API version.
Possible Causes
The value of compatibleSdkVersion, compileSdkVersion, or targetSdkVersion in build-profile.json5 does not match the API version.
Solution
For details about the supported SDK versions, see HarmonyOS Development Suite Versions.
Error Message
Invalid dynamic import configuration XXX in current module XXX.
Symptom
The dynamic import configuration in the current module is invalid.
Possible Causes
The dynamically imported file is not within the current module or other modules of the project.
Solution
Ensure the dynamically imported file path is within the current module or other project modules.
Error Message
Invalid file XXX found in the module XXX dynamic import files.
Symptom
The dynamically imported file must have the .ts or .ets extension.
Possible Causes
The extension of the dynamically imported file is not .ts or .ets.
Solution
Check the dynamically imported file and ensure that the extension is .ts or .ets.
Error Message
Invalid dynamic import configuration XXX in module XXX.
Symptom
The dynamic import configuration in the module is invalid.
Possible Causes
When noExternalImportByPath is set to true in the project-level build-profile.json5 file, runtimeOnly does not allow cross-module dynamic import.
Solution
Error Message
Invalid dynamic import configurations in current module XXX.
Symptom
The dynamic import configuration in the current module is invalid.
Possible Causes
The dynamically imported file path is not defined in dependencies of oh-package.json5. The path of a file in a third-party package cannot be configured.
Solution
Ensure that all dynamically imported files or relative paths are defined in dependencies of oh-package.json5.
Error Message
Invalid configuration of XXX field.
Symptom
The srcEntry field is invalid.
Possible Causes
The srcEntry field in module.json5 is not set to a relative path.
Solution
Ensure that the srcEntry field uses a relative path (for example, ./**).
Error Message
The required field form.src is missing.
Symptom
The required field src is missing.
Possible Causes
The card configuration file lacks the src field.
Solution
Ensure the card configuration file includes the src field.
Error Message
The value of form.src: XXX, is not under module YYY.
Symptom
The value of form.src is not within module YYY.
Possible Causes
The value of the src field in the card configuration file is not within module YYY.
Solution
Ensure that the value of the src field is within module YYY.
Error Message
The 'mainElement' field was not found in the module.json5 file.
Symptom
The mainElement field cannot be found in the module.json5 file.
Possible Causes
The module.json5 file of an atomic service project does not contain the mainElement field.
Solution
Ensure that the module.json5 file of the atomic service project contains the mainElement field.
Error Message
XXX is a invalid path. At file: YYY.
Symptom
The path configured in the mock-config.json5 file is invalid or does not exist.
Possible Causes
The path configured in the mock-config.json5 file is invalid or does not exist.
Solution
Ensure all paths configured in mock-config.json5 are correct and exist.
Error Message
Invalid configuration in the app.json5.
Symptom
The configuration field in the app.json5 file is invalid.
Possible Causes
The path corresponding to the configuration field in app.json5 does not exist.
Solution
Ensure that the file path corresponding to the configuration field exists.
Error Message
Invalid configuration. The path of XXX does not exist. At file: YYY.
Symptom
The path corresponding to the XXX field does not exist.
Possible Causes
The path corresponding to the XXX field does not exist.
Solution
Ensure that the path corresponding to the XXX field exists.
Error Message
The value of general in the syscap.json file must be the same as that of XXX in the YYY file.
Symptom
The value of general in the syscap.json file must be the same as that of XXX in the YYY file.
Possible Causes
The field values in the two files do not match.
Solution
Ensure that the field values in the two files are consistent.
Error Message
Unable to find the general field or its value is invalid. At file: XXX.
Symptom
The general field is not configured, or the configured device types are inconsistent with those in deviceTypes of the module.
Possible Causes
The general field is not configured, or the configured device types are inconsistent with those in deviceTypes of the module.
Solution
Ensure that the field exists and the field value is consistent with the value of deviceTypes.
Error Message
Invalid pageSourceFile format in the XXX routerMap configuration. At file: XXX.
Symptom
The format of the pageSourceFile field in the routerMap configuration is invalid.
Possible Causes
The pageSourceFile field is not set to a path starting with src/.
Solution
Ensure that the pageSourceFile field is set to a relative path starting with src/.
Error Message
Module-Abilities-srcLanguage in XXX is not defined. At file: YYY.
Symptom
The Module-Abilities-srcLanguage field is not defined.
Possible Causes
The srcLanguage tag is missing.
Solution
Ensure that the Module-Abilities-srcLanguage field in the YYY file is defined.
Error Message
The material has not been configured in signingConfigs. At file: XXX.
Symptom
No signing material is found in signingConfigs.
Possible Causes
material is not configured in signingConfigs in the build-profile.json5 file.
Solution
Ensure that material in the project-level build-profile.json5 file has been configured.
Error Message
Invalid XXX value. Make sure it is not null or empty. The file must be included in YYY.
Symptom
The value of XXX in the signing material is an invalid file or folder.
Possible Causes
The XXX field is not configured or the configured value is invalid.
Solution
Ensure that the XXX field in the project-level build-profile.json5 file has been configured. If the value of this field is a file path, ensure that the file path exists.
Error Message
Signing configuration XXX does not apply to YYY.
Symptom
The signing configuration XXX cannot be used in a project of the YYY type.
Possible Causes
The type field in signingConfigs does not match runtimeOS.
Solution
Ensure that the runtimeOS field under products in build-profile.json5 matches the type field under signingConfigs.
Error Message
Unable to replace pages. Cannot find moduleJsonObj.module.pages in module XXX.
Symptom
Failed to replace pages. The pages field does not exist in target module.
Possible Causes
The pages field is missing in the module.json5 file of the module.
Solution
Ensure that the module.json5 file contains the pages field.
Error Message
buildProfileFields only support number/string/boolean,not support XXX, the value YYY does not meet the requirements.
Symptom
The value of buildProfileFields can only be of the number, string, or Boolean type. The configured value does not meet the requirement.
Possible Causes
The value of buildProfileFields is not a number, string, or Boolean.
Solution
Ensure that the value of buildProfileFields meets the requirement.
Error Message
byteCodeHar not supported when useNormalizedOHMUrl is not true.
Symptom
When useNormalizedOHMUrl is not set to true, the bytecode HAR is not supported.
Possible Causes
When useNormalizedOHMUrl is not set to true, the bytecode HAR is not supported.
Solution
Check the useNormalizedOHMUrl field in the project-level build-profile.json5 file.
Error Message
The configured cmake script in externalNativeOptions/path cannot be empty. At file: XXX.
Symptom
The path field under externalNativeOptions cannot be empty.
Possible Causes
The path field under externalNativeOptions is empty.
Solution
Ensure that the value of path under externalNativeOptions in the module-level or project-level build-profile.json5 file is valid.
Error Message
"armeabi-v7a" not supported for HarmonyOS. At file: XXX.
Symptom
HarmonyOS projects do not support armeabi-v7a.
Possible Causes
The abiFilters field is set to armeabi-v7a in the HarmonyOS project.
Solution
Set abiFilters set to a valid value.
Error Message
"armeabi-v7a" not supported for OpenHarmony as the only option. At file: XXX.
Symptom
armeabi-v7a cannot be the sole ABI configuration in an OpenHarmony project.
Possible Causes
In an OpenHarmony project, only armeabi-v7a is configured for the abiFilters field.
Solution
Add arm64-v8a or x86_64 to the abiFilters field.
Error Message
The length of the storePassword or keyPassword field in the signature configuration is less than 32. At file: XXX.
Symptom
The length of the storePassword or keyPassword field in the signing material cannot be less than 32.
Possible Causes
The length of the storePassword or keyPassword field in the signing material cannot be less than 32.
Solution
Remove the signingConfigs field from the XXX file and choose File > Project Structure > Project > Signing Configs to reconfigure signing.
Error Message
The length of the storePassword or keyPassword field in the signature configuration is an even number. At file: XXX.
Symptom
The value length of the storePassword or keyPassword field in the signing material is an even number.
Possible Causes
The value length of the storePassword or keyPassword field in the signing material is an even number.
Solution
Remove the signingConfigs field from the XXX file and choose File > Project Structure > Project > Signing Configs to reconfigure signing.
Error Message
Signing failed: Signing material data error!. At file: XXX.
Symptom
The signing material data is incorrect.
Possible Causes
The signing material is damaged.
Solution
Remove the signingConfigs field from the XXX file and choose File > Project Structure > Project > Signing Configs to reconfigure signing.
Error Message
Signing failed: Signing materials XXX is illegal!.At file: YYY.
Symptom
The signing material XXX is invalid.
Possible Causes
The signing material is damaged.
Solution
Remove the signingConfigs field from the YYY file and choose File > Project Structure > Project > Signing Configs to reconfigure signing.
Error Message
Signing failed: signing material XXX is empty or not a directory.At file: YYY.
Symptom
The signing material XXX is empty or not a folder.
Possible Causes
The signing material is empty or not a folder.
Solution
Remove the signingConfigs field from the YYY file and choose File > Project Structure > Project > Signing Configs to reconfigure signing.
Error Message
Signing failed: Signing material error. At file: XXX.
Symptom
The signing material is incorrect.
Possible Causes
The signing material is damaged.
Solution
Remove the signingConfigs field from the XXX file and choose File > Project Structure > Project > Signing Configs to reconfigure signing.
Error Message
The suffix of apPath at XXX is invalid.
Symptom
The path configured in apPath has an invalid suffix.
Possible Causes
The suffix of the path configured in apPath is not .ap.
Solution
Ensure that the suffix of the path configured in apPath is .ap.
Error Message
The minAPIVersion was not configured. At file: XXX.
Symptom
The minAPIVersion field is not configured.
Possible Causes
The minAPIVersion field is missing.
Solution
Ensure that the minAPIVersion field exists in the XXX file.
Error Message
Unable to find the product XXX for module YYY. At file: ZZZ.
Symptom
The product XXX required by module YYY cannot be found in the specified file.
Possible Causes
The product configuration is missing or incorrect in the project-level build-profile.json5 file.
Solution
Check the project-level build-profile.json5 file and ensure that product is correctly configured.
Error Message
Plugin with ID XXX has been registered. Please check.
Symptom
The plugin ID is duplicate and already in use.
Possible Causes
The configured ID of the plugin is the same as that of another plugin.
Solution
Check the hvigorfile.ts file and ensure that the plugin IDs are unique.
Error Message
The hvigor depends on the npmrc file. No npmrc file is matched in the current user folder. Configure the npmrc file first.
Symptom
The .npmrc file on which hvigor depends does not exist in the current user directory.
Possible Causes
The .npmrc file does not exist in the user directory.
Solution
Create the .npmrc file in the user directory and configure the following information:
registry=https://repo.huaweicloud.com/repository/npm/ @ohos:registry=https://repo.harmonyos.com/npm/
Error Message
Error module name, can not be empty string!
Symptom
The module name cannot be an empty string.
Possible Causes
The module name in hvigorfile.ts is an empty string.
Solution
Check the hvigorfile.ts file and ensure that the module name is a non-empty string.
Error Message
node Hook must be beforeNodeEvaluate or afterNodeEvaluate.
Symptom
hook is not set to beforeNodeEvaluate or afterNodeEvaluate.
Possible Causes
hook is not set to beforeNodeEvaluate or afterNodeEvaluate.
Solution
Set hook to either beforeNodeEvaluate or afterNodeEvaluate.
Error Message
Cannot find Node, at file:XXX.
Symptom
The node cannot be found by node name.
Possible Causes
The module name is incorrect.
Solution
Correctly configure the module name in the XXX file.
Error Message
Can not find task XXX.At file:YYY.
Symptom
The task cannot be found by task name.
Possible Causes
The task name is misconfigured.
Solution
Correctly configure the module name in the YYY file.
Error Message
XXX is not a valid task node key. The values of moduleName and taskName cannot contain ':'.
Symptom
XXX is not a valid task node key. The values of moduleName and taskName cannot contain ':'.
Possible Causes
The values of moduleName and taskName in hvigorfile.ts contain ':'.
Solution
Ensure that the values of moduleName and taskName in hvigorfile.ts do not contain ':'.
Error Message
Duplicate task: XXX. Rename the task. At file: YYY.
Symptom
This task name already exists.
Possible Causes
The custom task name is the same as an existing task name.
Solution
Ensure that the custom task name is unique.
Error Message
XXX file version format is not compliant, please check.
Symptom
The format of the version field in the XXX file does not meet the requirements.
Possible Causes
The version field in the module-level oh-package.json5 file violates the SemVer specification.
Solution
Correctly configure the version field according to the SemVer specification.
Error Message
module type must be shared when bundleType is shared.module name : XXX.
Symptom
When bundleType is set to shared, the module type must be shared.
Possible Causes
bundleType is set to shared in app.json5, but type in module.json5 of the XXX module is not.
Solution
Use either of the following methods:
Error Message
Hvigorfile not found: XXX.
Symptom
The hvigorfile.ts file cannot be found.
Possible Causes
The hvigorfile.ts file name is changed or the file is deleted.
Solution
Ensure that there is a hvigorfile.ts file under both the project and module directories.
Error Message
Path not found: XXX.
Symptom
The file cannot be found using the file path.
Possible Causes
The configured file path is incorrect.
Solution
Check the file path based on the error message.
Error Message
XXX is not exist.
Symptom
The .json5 file path does not exist.
Possible Causes
The file path is misspelled.
Solution
Configure a correct file path.
Error Message
the path: XXX is not a file path.
Symptom
The path XXX is not a file path.
Possible Causes
XXX is a folder.
Solution
Ensure that the file path is correct and exists.
Error Message
Check the ability name in the config.json file and make sure it is unique.
Symptom
Ensure all ability names in config.json are unique.
Possible Causes
The ability name is duplicate in the config.json file.
Solution
Ensure all ability names in config.json are unique.
Error Message
Check the form name in the config.json file and make sure it is unique.
Symptom
The form name in config.json is not unique.
Possible Causes
The form name is duplicate in the config.json file.
Solution
The form name in config.json is not unique.
Error Message
FA mode does not support modifying the XXX.
Symptom
The XXX file of the FA model project cannot be modified.
Possible Causes
The XXX file of the FA model project is modified.
Solution
Use the stage model instead.
Error Message
Only relative path is allowed.
Symptom
Only relative paths are allowed.
Possible Causes
An absolute path is used for the plugin configuration in hvigorfile.ts.
Solution
Use a relative path for the plugin configuration in hvigorfile.ts.
Error Message
plugin path XXX not exists.
Symptom
The configured plugin path does not exist.
Possible Causes
The path is misspelled.
Solution
Configure a correct plugin path.
Error Message
plugin file XXX must end with .ts.
Symptom
The plugin file name must end with .ts.
Possible Causes
The plugin file name does not end with .ts.
Solution
Ensure that the plugin file extension is .ts.
Error Message
buildOptionSet config buildOption: XXX copyFrom has circle.
Symptom
The path configured for copyFrom of the XXX configuration under buildOptionSet has a cyclic dependency.
Possible Causes
The path configured for copyFrom of the XXX configuration under buildOptionSet has a cyclic dependency.
Solution
Ensure that no cyclic dependency exists in the path configured for copyFrom.
Error Message
Missing SDK components. SDK path: XXX, missing components: YYY.
Symptom
The SDK component is missing.
Possible Causes
The SDK component is missing.
Solution
Error Message
Unable to find target 'XXX' in module 'YYY'. Make sure module 'YYY' has the same target as module 'ZZZ'.
Symptom
The target XXX cannot be found in the YYY module. Ensure that the YYY module and ZZZ module have the same target.
Possible Causes
The ZZZ module depends on the YYY module. When ZZZ is compiled using commands, the target XXX is specified for both YYY and ZZZ. However, the target XXX cannot be found in the YYY module.
Solution
Ensure that the YYY and ZZZ modules have the same target XXX.
Error Message
Unable to find target 'XXX' in module 'YYY'. Make sure module 'YYY' has the same target as module 'ZZZ'.
Symptom
The target XXX cannot be found in the YYY module. Ensure that the YYY module and ZZZ module have the same target.
Possible Causes
The ZZZ module depends on the YYY module. When ZZZ is compiled using commands, the target XXX is specified for both YYY and ZZZ. However, the target XXX cannot be found in the YYY module.
Solution
Ensure that the YYY and ZZZ modules have the same target XXX.
Error Message
Invalid transformLib value XXX is not File.
Symptom
The value of transformLib is invalid since it does not point to an existing file.
Possible Causes
The file path configured for transformLib is incorrect.
Solution
Configure a correct file path for transformLib.
Error Message
Invalid transformLib value, it requires a .dll file in Windows.
Symptom
The value of transformLib is invalid on Windows since it does not point to a .dll file.
Possible Causes
On Windows, the value of transformLib does not point to a .dll file.
Solution
Configure a file path that points to a .dll file for transformLib.
Error Message
metadata.resource must be string in file: XXX.
Symptom
The value of metadata.resource must be a string.
Possible Causes
metadata.resource is set to a value of another data type.
Solution
Configure a value of the string type for metadata.resource.
Error Message
Cannot resolve symbol metadata.resource. At file XXX.
Symptom
metadata.resource contains unresolved symbols.
Possible Causes
The file path configured for metadata.resource is incorrect.
Solution
Configure a correct and valid file path.
Error Message
Invalid dependency: Version XXX is not a string.
Symptom
The provided version number is invalid.
Possible Causes
The version number in the hvigorfile.ts file is not a string.
Solution
Make sure the parameter passed to the setVersion API in the hvigorfile.ts file is a string.
Error Message
Invalid dependency: DependencyVersion XXX is not a string.
Symptom
The provided dependency value is invalid.
Possible Causes
The dependency value in the hvigorfile.ts file is not a string.
Solution
Check the hvigorfile.ts file and ensure that the dependency value a string.
Error Message
Cannot add or delete products, at file:XXX.
Symptom
The configured values in the products field cannot be added or deleted.
Possible Causes
The configured values in the products field are added to or deleted from the project-level build-profile.json5 file using the setBuildProfileOpt API of the hvigorfile.ts plugin.
Solution
Check the hvigorfile.ts file and ensure that products is not added or deleted.
Error Message
Cannot rename products or runtimeOS. Keep the name or runtimeOS XXX unchanged.
Symptom
name or runtimeOS under products cannot be modified.
Possible Causes
The name and runtimeOS fields under products in the project-level build-profile.json5 file are modified using the setBuildProfileOpt API of the hvigorfile.ts plugin.
Solution
Check the hvigorfile.ts file and ensure that the name and runtimeOS fields under products are not modified.
Error Message
moduleType: XXX is an invalid value.
Symptom
moduleType is set to an invalid value.
Possible Causes
The moduleType field is misconfigured or misspelled.
Solution
Verify the value of the type field under module in the module.json5 or config.json file. The valid values include entry, feature, har, and shared.
Error Message
runtimeOS: XXX is an invalid value. Please check it.
Symptom
runtimeOS is set to an invalid value.
Possible Causes
The runtimeOS field is misconfigured or misspelled.
Solution
Set runtimeOS to OpenHarmony or HarmonyOS in the build-profile.json5 file.
Error Message
A Page ability requires a JS component with the same name at XXX.
Symptom
A Page ability requires a JS component with the same name.
Possible Causes
The corresponding JS component is not defined in the config.json file, or the JS component name does not match the Page ability or contains a spelling error.
Solution
Ensure the config.json file includes a JS component with the same name as the Page ability.
Error Message
Ability name XXX does not exist in config.json.
Symptom
Only abilities defined in the config.json file are allowed.
Possible Causes
The specified ability name is not defined in the config.json file or misspelled.
Solution
Ensure that the specified ability has been defined in the config.json file.
Error Message
entryModules must be configured for a feature module in FA project.
Symptom
entryModules must be configured for the feature module of an FA model project.
Possible Causes
entryModules is not configured in the module-level build-profile.json5 file.
Solution
Configure entryModules in the module-level build-profile.json5 file.
Error Message
Unable to obtain the module deviceType.
Symptom
The deviceType configuration of the module cannot be obtained.
Possible Causes
The config.json file does not contain the deviceType field.
Solution
Ensure that the config.json file exists and is correctly formatted, with the deviceType field properly configured.
Error Message
Unable to obtain the module deviceTypes.
Symptom
The deviceTypes configuration of the module cannot be obtained.
Possible Causes
The module.json5 file does not contain the deviceTypes field.
Solution
Ensure that the module.json5 file exists and is correctly formatted, with the deviceTypes field properly configured.
Error Message
Unable to obtain the module information at file: XXX.
Symptom
The module information cannot be obtained from the module.json5 file.
Possible Causes
The module.json5 file does not contain the module field.
Solution
Correctly configure the module field in the module.json5 file.
Error Message
Unable to obtain the module type at file: XXX.
Symptom
The module type cannot be obtained.
Possible Causes
The module.json5 file does not contain the type field.
Solution
Correctly configure the module.type field in the module.json5 file.
Error Message
Missing or invalid config of parameterFile in the project-level oh-package.json5 file. Check at file: XXX.
Symptom
The project-level oh-package.json5 file does not contain a correctly configured parameterFile field.
Possible Causes
The parameterFile field is missing from the project-level oh-package.json5 file or not correctly configured.
Solution
Add the parameterFile field to the project-level oh-package.json5 file and ensure that the configuration is correct.
Error Message
The project-level build-profile.json5 file does not comply with the schema.
Symptom
The project-level build-profile.json5 file does not comply with the schema specification.
Possible Causes
Solution
Error Message
No products found in the build-profile.json5 file. At file: XXX.
Symptom
The products configuration cannot be found in the build-profile.json5 file.
Possible Causes
The products field is not defined in the build-profile.json5 file.
Solution
Configure products in the project-level build-profile.json5 file.
Error Message
Invalid module name settings in these modules: 'XXX'. Check whether the module is valid.
Symptom
The module name is invalid.
Possible Causes
The module names specified by the modules parameter in the arkui-x-config.json5 file in the ArkUI-X project are incorrect.
Solution
Ensure that the module names specified in the modules parameter are correct.
Error Message
The module target XXX is not found in the YYY.
Symptom
The required target cannot be found in the specified module.
Possible Causes
The required target is not defined in the specified module.
Solution
Ensure target in the command line or in the build-profile.json5 file of the module is correct.
Error Message
No available entry module found.
Symptom
No available entry module is found.
Possible Causes
Solution
Ensure that entryModules exists and is correctly configured in the build-profile.json5 file of the feature module.
Error Message
Build mode XXX used in command line is not declared in buildModeSet in file: YYY.
Symptom
The build mode used in the command line is not defined in the buildModeSet field of the specified file.
Possible Causes
The build mode used is not defined in the project-level build-profile.json5.
Solution
Add the build mode used to the buildModeSet field in the project-level build-profile.json5.
Error Message
Build mode XXX used in buildModeBinder is not declared in buildModeSet in file: YYY.
Symptom
The build mode used in buildModeBinder is not defined in the buildModeSet field of the specified file.
Possible Causes
The build mode used is not defined in the specified file.
Solution
Add the build mode used to the buildModeSet field in the specified file.
Error Message
Target XXX used in buildModeBinder is not declared in file: YYY.
Symptom
The target used in the buildModeBinder is not defined in the specified file.
Possible Causes
The target used is not defined in the specified file.
Solution
Add the target used to the targets field in the specified file.
Error Message
Build option XXX used in buildModeBinder is not declared in file: YYY.
Symptom
The build option used in buildModeBinder is not defined in the buildOptionSet field of the specified file.
Possible Causes
The build option used is not defined in the specified file.
Solution
Add the build option used to the buildOptionSet field in the specified file.
Error Message
Unable to find XXX in local.properties or YYY in the system environment path. Check at file: ZZZ.
Symptom
The ArkUI-X SDK directory cannot be found in local.properties or system environment variables.
Possible Causes
Solution
Error Message
Unable to find XXX in local.properties or YYY in the system environment path. Check at file: ZZZ.
Symptom
The SDK directory cannot be found.
Possible Causes
Solution
Error Message
Unable to find target 'YYY' in module 'XXX'.
Symptom
The required target is missing in the specified module.
Possible Causes
The required target is not correctly configured or is missing in the specified module.
Solution
Ensure that the entry module associated with the feature module of the FA model includes the corresponding target.
Error Message
The XXX file in the YYY module has the same name as the ZZZ file in the AAA module.
Symptom
The name of the XXX file in the YYY module is the same as that of the ZZZ file in the AAA module.
Possible Causes
An Arkdata JSON file with the same name exists in both the two modules.
Solution
Rename one of the files to avoid naming conflicts.
Error Message
The module XXX does not exist ohosTest target, Failed to execute the command YYY.
Symptom
The ohosTest target is not defined for the specified module during ohos test coverage report generation, causing the ohosTest command to fail.
Possible Causes
ohosTest target is not configured in the module-level build-profile.json5 file.
Solution
Check the build-profile.json5 file of the specified module and ensure that the target named ohosTest exists.
Error Message
The type of target device does not match the device type configured by module: XXX.Required device type:XXX, current module device type:XXX.
Symptom
The target device type specified in the command does not match the device type configured in the module.
Possible Causes
The device type specified in the hvigorw command is not defined in the module.json5 or module-level build-profile.json5 file, or the device type is incorrectly modified.
Solution
Error Message
There are some dependency names that are inconsistent with the actual package names.
Symptom
Dependency names do not match their corresponding package names.
Possible Causes
The dependency names in configuration files do not match the actual package names.
Solution
Verify that the dependency names match the name field in oh-package.json5 of the dependencies.
Error Message
Unrecognized archive format in parameterFile.
Symptom
The file referenced by parameterFile cannot be identified.
Possible Causes
The value of parameterFile references neither a directory nor a valid .har/.tgz file.
Solution
Ensure that the dependency configuration points to a directory or a .har/.tgz file.
Error Message
Invalid value of 'XXX' in the system environment path.
Symptom
The specified value in the system environment variable is invalid.
Possible Causes
The specified value in the system environment path is incorrect.
Solution
Modify the specified value in the environment path, run the hvigorw --stop-daemon command, and try again.
Error Message
The reason and usedScene attributes are mandatory for user_grant permissions.
Symptom
For user_grant permissions, the reason and usedScene properties are mandatory.
Possible Causes
The reason or usedScene field is not configured as expected for permissions of the user_grant type in the module.json5 file.
Solution
For details, see Declaring Permissions. The following conditions must be met:
Error Message
Duplicate 'routerMap' object names detected.
Symptom
Duplicate routerMap object names exist.
Possible Causes
The router_map.json file of the current module contains duplicate routerMap object names, either within the current module or between the current module and its dependent modules.
Solution
Make sure all routerMap objects in the router_map.json file have unique names.
Error Message
Failed to obtain the module type.
Symptom
Failed to obtain the module type.
Possible Causes
Solution
Error Message
The XXX permission under requestPermissions must be a value that is predefined within the SDK or a custom one that you have included under definePermissions.
Symptom
The specified permission in requestPermissions is not predefined in the SDK or not declared in definePermissions.
Possible Causes
The permission name configured in requestPermissions in the module.json5 file is invalid.
Solution
In the module.json5 file, update the value of the name field under requestPermissions to a valid permission name, either predefined in the SDK or custom-defined under definePermissions.
Error Message
The reason attribute are mandatory for user_grant permissions.
Symptom
For user_grant permissions, the reason property is mandatory.
Possible Causes
The reason field is not configured as expected for permissions of the user_grant type in the module.json5 file.
Solution
For details, see Declaring Permissions. The following conditions must be met:
Error Message
The metadata field in FormExtensionAbility cannot be left blank or as an empty array.
Symptom
The metadata field in the FormExtensionAbility cannot be empty or an empty array.
Possible Causes
The metadata field in the ExtensionAbility of the form type in the module.json5 file is either empty or set to an empty array.
Solution
Configure the metadata field in the ExtensionAbility of the form type in the module.json5 file.
Error Message
In FormExtensionAbility, metadata must contain an object with its name set to 'ohos.extension.form' and resource set to a second-level resource reference.
Symptom
In the FormExtensionAbility, metadata must contain an object named ohos.extension.form with resource set to a second-level resource reference.
Possible Causes
The metadata field in the ExtensionAbility of the form type in the module.json5 file either does not contain an object named ohos.extension.form or does not contain the resource field.
Solution
For the ExtensionAbility objects of the form type in the module.json5 file, make sure the metadata field contains an object named ohos.extension.form with a valid resource value. For details about the configuration instructions, see Configuring ArkTS Widget Configuration Files.
Error Message
Duplicate 'Module-Abilities' object names detected.
Symptom
The names of the Module-Abilities objects are duplicate.
Possible Causes
The name values of abilities or extensionAbilities objects conflict between the current module's module.json5 file and the dependent HAR modules' module.json5 file.
Solution
Ensure the uniqueness of name values of abilities and extensionAbilities objects in the current module's and dependent HAR modules' module.json5 files.
Error Message
Invalid form name 'XXX'.
Symptom
The form name is invalid.
Possible Causes
The form name is not defined in the form_config.json file.
Solution
Configure the form name in the form_config.json file.
Error Message
File 'string.json' is missing the required property 'string'.
Symptom
The string.json file does not contain the required string property.
Possible Causes
The string.json file does not contain the required string property.
Solution
Make sure the string.json file contains the required string property.
Error Message
The 'tag' keyword is not allowed for 'version' at XXX.
Symptom
A tag is used in the version field of the oh-package.json5 file.
Possible Causes
When the version field in the oh-package.json5 file is configured via parameterFile, the version field must not contain a tag.
Solution
Locate the parameter in parameterFile that is referenced by the version field in oh-package.json5 and ensure it contains no tag.
Error Message
The required attribute: module-name is missing.
Symptom
The required property module-name is missing.
Possible Causes
Solution
Error Message
The required attribute module-srcPath is missing.
Symptom
The required property module-srcPath is missing.
Possible Causes
Solution
Error Message
The srcPath is not a relative path: XXX.
Symptom
The value of srcPath is not a relative path.
Possible Causes
The value of srcPath is not a relative path when the module is dynamically added to the hvigorconfig.ts file.
Solution
Open the hvigorconfig.ts file in the root directory of the project and ensure that the srcPath field of includeNode is set to a relative path.
Error Message
Failed to find the XXX node while setting the task dependencies in the YYY module's task: ZZZ.
Symptom
The module cannot be found in the task dependency.
Possible Causes
The module name configured in the task dependency is incorrect.
Solution
Check the hvigorfile.ts file and ensure that the module name in the task dependency is correctly configured.
Error Message
Path not found. At path: XXX.
Symptom
The specified path does not exist.
Possible Causes
An invalid or a misspelled path is configured.
Solution
Correct the path configuration according to the error message.
Error Message
The error message is subject to the actual syntax error.
Symptom
The hvigor-config.json5 file contains a syntax error.
Possible Causes
The hvigor-config.json5 file contains a syntax error. For details, see the error message.
Solution
Rectify the syntax error in the hvigor-config.json5 file based on the error message.
Error Message
The value of 'ohos.align.target' in hvigor-config.json5 must be a string.
Symptom
The value of ohos.align.target in the hvigor-config.json5 file must be a string.
Possible Causes
The value of ohos.align.target in the hvigor-config.json5 file is not a string.
Solution
Ensure that the value of ohos.align.target is a string.
Error Message
Invalid ability name XXX. At file: YYY.
Symptom
The ability name is invalid.
Possible Causes
The ability configuration for the uiAbility object under the insightIntents field in the InsightIntent configuration file insight_intent.json is invalid.
Solution
Ensure that the ability with a specific name is configured in the abilities field of the module.json5 file.
Error Message
Signature material verification failed, as: XXX.
Symptom
The signing material verification failed.
Possible Causes
The signing configuration in build-profile.json5 is incomplete or the signing materials are corrupted.
Solution
Error Message
Invalid ability name XXX. At file: YYY.
Symptom
The ability name is invalid.
Possible Causes
The ability configuration for the serviceExtension object under the insightIntents field in the InsightIntent configuration file insight_intent.json is invalid.
Solution
Ensure that the extension ability of the service type with a specific name exists under the extensionAbilities field in the module.json5 file.
Error Message
Invalid ability name XXX. At file: YYY.
Symptom
The ability name is invalid.
Possible Causes
The ability configuration for the form object under the insightIntents field in the InsightIntent configuration file insight_intent.json is invalid.
Solution
Ensure that the extension ability of the form type with a specific name exists under the extensionAbilities field in the module.json5 file.
Error Message
Invalid ability name XXX. At file: YYY.
Symptom
The ability name is invalid.
Possible Causes
The ability configuration for the uiExtension object under the insightIntents field in the InsightIntent configuration file insight_intent.json is invalid.
Solution
Ensure that the ability with a specific name is configured in the abilities or extensionAbilities field of the module.json5 file.
Error Message
Circular dependency between the following tasks.
Symptom
There is a circular dependency between tasks.
Possible Causes
The user configured dependencies for custom tasks, resulting in circular dependencies between tasks.
Solution
Remove the tasks that cause the circular dependency as prompted.
Error Message
FA mode does not support 'preloadSystemSo'.
Symptom
The FA model project does not support preloadSystemSo.
Possible Causes
preloadSystemSo is set to true under buildOption in the project-level build-profile.json5 file.
Solution
Remove preloadSystemSo or set preloadSystemSo to false.
Error Message
'ohos.arkCompile.singleFileEmit' does not support when 'preloadSystemSo' is set to true.
Symptom
preloadSystemSo and ohos.arkCompile.singleFileEmit cannot be enabled simultaneously.
Possible Causes
The preloadSystemSo in build-profile.json5 is set to true, and the ohos.arkCompile.singleFileEmit in hvigor-config.json5 is set to true.
Solution
Error Message
Referenced module XXX not found.
Symptom
The configured module cannot be found in the project.
Possible Causes
The module referenced via formExtensionModule or formWidgetModule does not exist.
Solution
Ensure that the module exists in the project.
Error Message
formExtensionModule can only reference entry or feature modules, but XXX is of type YYY.
Symptom
formExtensionModule must point to a feature module or an entry module, but the referenced module is of a different type.
Possible Causes
The module referenced via formExtensionModule is not a feature or an entry module.
Solution
Ensure that formExtensionModule points to an entry or a feature module.
Error Message
Referenced module XXX must have formWidgetModule/formExtensionModule pointing back to YYY to establish a bidirectional reference.
Symptom
The formWidgetModule/formExtensionModule field of module XXX must point to module YYY to ensure bidirectional association between the two modules.
Possible Causes
The formWidgetModule/formExtensionModule field does not point to module XXX or YYY.
Solution
Error Message
Embedded widgets and standalone widgets must not be used together.
Symptom
Embedded widgets and standalone widget packages cannot coexist.
Possible Causes
When the standalone widget package is used, the form_config.json file exists in both the entry module of the app package and the library module of the widget package.
Solution
Remove the standalone widget package or the embedded widget.
Error Message
When a module is a standalone widget, all of its dependencies must be HAR modules.
Symptom
The library module of the standalone widget package can only depend on HAR modules.
Possible Causes
The library module of the standalone widget package is configured to depend on an HSP module in the oh-package.json5 file.
Solution
Remove the HSP dependency of the library module of the standalone widget package from the oh-package.json5 file.
Error Message
Field deliveryWithInstall was not set to true.
Symptom
deliveryWithInstall is not set to true.
Possible Causes
deliveryWithInstall is not set to true.
Solution
Set the deliveryWithInstall field to true in the module.json5 file of both the main application module (entry) and the widget-providing library module within the standalone widget package.
Error Message
Standalone widgets are not supported on API versions earlier than 20. Set compatibleSdkVersion to 6.0.0(20) or higher in the project-level build-profile.json5 file.
Symptom
Standalone widget packages cannot be used in projects with API version lower than 20.
Possible Causes
compatibleSdkVersion of the project using the standalone widget package is lower than 6.0.0(20).
Solution
Set compatibleSdkVersion in the project-level build-profile.json5 file to 6.0.0(20) or later.
Error Message
formWidgetModule can only reference a hsp module, but XXX is of type YYY.
Symptom
formWidgetModule must point to an HSP module, but the referenced module is of a different type.
Possible Causes
The module referenced via formWidgetModule is not an HSP module.
Solution
Ensure that formWidgetModule points to an HSP module.
Error Message
Duplicate 'crossAppSharedConfig' object uris detected.
Symptom
There are duplicate URIs in the crossAppSharedConfig object of the merged shared configuration files from different modules.
Possible Causes
Duplicate URIs exist in the shared configuration files of the current module and its dependent modules.
Solution
Modify the URI to ensure its uniqueness.
Error Message
Duplicate uri exists in the crossAppSharedConfig configuration file of the current module.
Symptom
There are duplicate URIs in the crossAppSharedConfig object of the shared configuration file of the current module.
Possible Causes
Duplicate URIs exist in the crossAppSharedConfig object of the shared configuration file.
Solution
Modify the URI to ensure its uniqueness.
Error Message
FA mode does not support 'expandImportPath'.
Symptom
The FA model project does not support expandImportPath.
Possible Causes
expandImportPath is configured in the build-profile.json5 file.
Solution
Remove expandImportPath.
Error Message
Dependency names: '[XXX]' configured in 'expandImportPath.exclude' are prohibited in current module.
Symptom
Configuring dependency XXX in expandImportPath.exclude is not allowed.
Possible Causes
The dependency referenced by the alias configured in expandImportPath.exclude of build-profile.json5 is not a local HAR module.
Solution
Remove the dependency alias XXX from expandImportPath.exclude.
Error Message
Invalid value 'XXX' in module 'YYY'. At file: 'ZZZ'.
Symptom
The sourceRoots configuration of module YYY is invalid.
Possible Causes
sourceRoots is set to an invalid value in build-profile.json5 of module YYY.
Solution
Ensure that all paths configured in the sourceRoots field meet the following requirements:
Error Message
Can not find product XXX. At File: YYY.
Symptom
The specified product cannot be found.
Possible Causes
The product specified in the compilation command is not found in the project-level build-profile.json5 file.
Solution
Modify the compilation parameters and use the correct product.
Error Message
${har}: the common dependency of ${hspA} and ${hspB} must be declared in dependencies of ${hap}.
Symptom
The HAR package that both hspA and hspB depend on is not added to the HAP's dependencies.
Possible Causes
The HAR package is missing from the HAP's dependencies.
Solution
Add the HAR package to the HAP's dependencies.
Error Message
The FA model does not support the 'deduplicateHar' field. At file: XXX.
Symptom
The FA model project does not support the deduplicateHar configuration.
Possible Causes
The current project uses the FA model.
Solution
Remove the deduplicateHar field or set it to false.
Error Message
'deduplicateHar' can be enabled only when 'compatibleSdkVersion' is greater than or equal to 21. At file: XXX.
Symptom
Enabling deduplicateHar requires compatibleSdkVersion to be at least 21.
Possible Causes
The value of compatibleSdkVersion in the project-level build-profile.json5 file is less than 21.
Solution
Set compatibleSdkVersion to a value greater than or equal to 21, or set deduplicateHar to false.
Error Message
'idDefinedFilePath': XXX must be an existing json5 file. At file: YYY.
Symptom
The specified idDefinedFilePath does not point to a valid .json5 file.
Possible Causes
The configured path does not exist or the referenced file is not in JSON5 format.
Solution
Ensure that the path configured in idDefinedFilePath points to an existing .json5 file.
Error Message
When 'deduplicateHar' is enabled, the 'idDefinedFilePath' field must be configured. At file: XXX.
Symptom
idDefinedFilePath is mandatory when deduplicateHar is set to true.
Possible Causes
The idDefinedFilePath field is missing from the configuration.
Solution
Add the idDefinedFilePath field under buildOption or resOptions.
Error Message
The 'deduplicateHar' field supports only one HAP per product. Now there are XXX haps: YYY in product ZZZ
Symptom
The deduplicateHar feature cannot be used in products containing multiple HAPs.
Possible Causes
The product contains multiple HAPs.
Solution
Ensure that each product contains only one HAP.
Error Message
When 'deduplicateHar' is enabled, the 'libIsolation' field cannot be set to true. At file: XXX.
Symptom
When deduplicateHar is set to true, libIsolation cannot be set to true.
Possible Causes
Both deduplicateHar and libIsolation are set to true.
Solution
Set libIsolation to false.
Error Message
When 'deduplicateHar' is enabled, the 'useNormalizedOHMUrl' field must be set to true. At file: XXX.
Symptom
When deduplicateHar is set to true, useNormalizedOHMUrl must be set to true.
Possible Causes
useNormalizedOHMUrl is not set to true.
Solution
Set useNormalizedOHMUrl to true.
Error Message
The har module must be set to byte code har when building customized har. At file: XXX.
Symptom
The current HAR module is not configured as a bytecode HAR, which is required for building a customized HAR.
Possible Causes
The customized HAR build is enabled in the HAR module's configuration (buildOption > packingOptions.customizedOptions.basePackage), but the current module is not configured as a bytecode HAR.
Solution
Configure the current HAR module as a bytecode HAR.
Error Message
ohos.compile.lib.entryfile must not set to true when building customized har. At file: XXX.
Symptom
ohos.compile.lib.entryfile is set to true, which is not allowed for customized HAR builds.
Possible Causes
The customized HAR build is enabled in the HAR module's configuration (buildOption > packingOptions.customizedOptions.basePackage), but ohos.compile.lib.entryfile in hvigor-config.json5 is set to true.
Solution
Set ohos.compile.lib.entryfile to false or delete the configuration item.
Error Message
Unable to get plugin in hvigorfile.ts of module 'XXX'. At file: YYY.
Symptom
The plugin cannot be obtained from the module's hvigorfile.ts file.
Possible Causes
Solution
type | system |
|---|---|
entry | hapTasks |
feature | hapTasks |
shared | hspTasks |
har | harTasks |
Error Message
Before enabling binxo, ensure that both '-DOHOS_ENABLE_HWASAN' and '-DOHOS_ENABLE_BINXO' parameters are set to ON. At file: XXX.
Symptom
Failed to enable BinXO because the parameter -DOHOS_ENABLE_HWASAN or -DOHOS_ENABLE_BINXO is not set to ON.
Possible Causes
-DOHOS_ENABLE_HWASAN is not set or is set to OFF, while -DOHOS_ENABLE_BINXO is set to ON. The parameter settings are incorrect.
Solution
Set externalNativeOptions > arguments to -DOHOS_ENABLE_HWASAN=ON -DOHOS_ENABLE_BINXO=ON.
Error Message
'oh-exports' is configurable only when 'useNormalizedOHMUrl' is true.
Symptom
oh-exports is configured when useNormalizedOHMUrl is not set to true.
Possible Causes
useNormalizedOHMUrl in the project-level build-profile.json5 file is set to false.
Solution
Set useNormalizedOHMUrl in the project-level build-profile.json5 file to true.
Error Message
Invalid path XXX. Only valid relative paths within the module are supported.
Symptom
Invalid path. Only valid relative paths within the module are supported.
Possible Causes
An invalid path is configured in oh-exports.
Solution
Check the paths configured in oh-exports and ensure that they are valid relative paths within the module.
Error Message
Invalid path XXX. Only directories or .ets/.ts/.js files are supported.
Symptom
Invalid path. Only directories or .ets/.ts/.js files are supported.
Possible Causes
The path in oh-exports points to an unsupported file type (not .ets, .ts, or .js files).
Solution
Check the paths in oh-exports and ensure that they point to directories or files with .ets/.ts/.js extensions.
Error Message
-p buildVersion=XXX is invalid.
Symptom
The buildVersion parameter for the Hvigor command is invalid.
Possible Causes
The buildVersion parameter for the Hvigor command does not meet the requirements.
Solution
Set buildVersion to a valid value. For details, see buildVersion.
Error Message
The executableBinaryPaths-path XXX is not a file. At file: YYY.
Symptom
The path specified by executableBinaryPaths-path does not point to a file.
Possible Causes
The path specified by executableBinaryPaths-path points to a directory instead of a file.
Solution
Ensure that the path specified by executableBinaryPaths-path points to a file.
Error Message
The executableBinaryPaths-path XXX is not found in allowed libs directories. At file: YYY.
Symptom
The path specified by executableBinaryPaths-path points to a file outside the libs directory.
Possible Causes
The path specified by executableBinaryPaths-path points to a file outside the libs directory.
Solution
Error Message
The value of the name attribute in the metadata of an extensionAbility of the agent type must be 'ohos.extension.agent'. At file: XXX.
Symptom
The value of the name property in metadata of the Agent extensionAbility must be ohos.extension.agent.
Possible Causes
The value of the name property in metadata of the Agent extensionAbility is not ohos.extension.agent.
Solution
Set the name property in metadata of the Agent extensionAbility to ohos.extension.agent.
Error Message
The value of the metadata.resource configuration 'XXX' for the extensionAbility with the name set to 'YYY' is invalid. At file: ZZZ.
Symptom
The configuration of the resource property under metadata for the target extensionAbility is invalid.
Possible Causes
The format of the resource property configured under metadata for the target extensionAbility is incorrect.
Solution
Ensure that the format of the resource property configured under metadata for the target extensionAbility is correct. You are advised to use the recommended format, for example, '$profile:agent_config'.
Error Message
The agentConfig resource file 'XXX' with the target 'YYY' for the module 'WWW' does not exist!. At file: ZZZ.
Symptom
The Agent extensionAbility configuration file configured for a specific target of the module does not exist.
Possible Causes
The configuration file corresponding to resource configured under metadata for the Agent extensionAbility of the target module does not exist.
Solution
Error Message
The agentId value 'XXX' is duplicated in all agentConfig configuration files under the module 'YYY'. At file: ZZZ.
Symptom
Duplicate agentId values are found in the Agent extensionAbility configuration files of the target module.
Possible Causes
Solution
Error Message
Module ['XXX'] target ['YYY'] and module ['ZZZ'] target ['MMM'] have same deviceTypes, and they share the same agentIds: ['NNN'].
Symptom
The targets of two modules share overlapping deviceTypes and contain identical agentId values.
Possible Causes
During app packaging, the HAP packages built for two module targets have overlapping deviceTypes, and the Agent extensionAbility configuration files of these HAPs contain identical agentId values.
Solution
Use either of the following methods:
Error Message
The resource 'XXX' of extensionAbility 'YYY' has the same configuration value as the resource of extensionAbility 'ZZZ'. At file: MMM.
Symptom
Two extensionAbilities are configured with identical resource property values.
Possible Causes
Two extensionAbilities are configured with identical resource property values.
Solution
Ensure that the resource property values configured for the two extensionAbilities are different.
Error Message
Invalid configuration of XXX field. At file: YYY.
Symptom
The specified field in the target file is invalid.
Possible Causes
srcEntry of extensionAbility in the HAR module cannot be configured to point to .so files.
Solution
Remove the .so file path configured in srcEntry of extensionAbility in the HAR module.
Error Message
Invalid configuration of XXX field. At file: YYY.
Symptom
The specified field in the target file is invalid.
Possible Causes
Absolute paths are not allowed when you assign .so file paths to srcEntry. Path values must not start with /, or include ./, ../, or \.
Solution
The .so file path configured for srcEntry is relative to the libs/{abi} directory, where {abi} indicates the CPU architecture type of the device (for example, arm64-v8a). For example, if the .so file path is libs/arm64-v8a/ole/liboleEntry.so, set srcEntry to ole/liboleEntry.so.
Error Message
You can not configure shared type dependency. At file: YYY.
Symptom
Configuration of dynamic shared package dependencies is not supported.
Possible Causes
When bundledAllDependencies in the module-level build-profile.json5 file is set to true, dynamic shared package dependencies cannot be configured.
Solution
Remove the dynamic shared package dependencies.
Error Message
The configs of bundledDependencies and bundle cannot be set at the same time. At file: YYY.
Symptom
The bundledDependencies and bundle fields cannot be both configured.
Possible Causes
Both the bundledDependencies and bundle fields are configured in the target file.
Solution
Configure either bundledDependencies or bundle, not both.
Error Message
The bundledAllDependencies is set to true, but the bundledDeclare is set to false. At file: YYY.
Symptom
bundledAllDependencies is set to true, while bundledDeclare is set to false.
Possible Causes
bundledAllDependencies is set to true, but bundledDeclare is not configured or is set to false.
Solution
When bundledAllDependencies is set to true, set bundledDeclare to true.
Error Message
One or more native C++ modules failed to build. Failed modules: XXX. Error details: YYY.
Symptom
The C++ module fails to be built.
Possible Causes
An error is reported in the CMake or Ninja configuration file.
Solution
Check the module based on the error message. Common error messages and corresponding handling procedures are provided below.
Error Message
xxx.so is incompatible with elf_x86_64.
Symptom
During the compilation of a Native C++ project, the linking phase fails, and a message is displayed indicating that the xxx.so file is incompatible with elf_x86_64.
Possible Causes
The linker attempts to link the xxx.so file to a target file for the x86_64 architecture, but the xxx.so file is not built for the x86_64 architecture (it may be built for arm64-v8a, armeabi-v7a, or other architectures).
Solution
"buildOption": {
"externalNativeOptions": {
"abiFilters": ["arm64-v8a"]
},
} Error Message
Contains one or more of the following error messages:
Symptom
Parsing fails due to encoding exceptions, such as undefined types and syntax errors.
Possible Causes
The source file may have been encrypted or tampered with by security software (such as encryption software or antivirus software).
Solution
Add the project directory or file to the trustlists of security software, restore the content of the corresponding file, and verify that the file is intact and undamaged.
Error Message
XXX configured for abilityName is invalid in skillProfiles[name='YYY']. Only UIAbilities or service-type extensionAbilities are supported. At file: ZZZ.
Symptom
abilityName in skillProfiles supports only UIAbilities under the abilities tag or ExtensionAbilities of the service type under the extensionAbilities tag.
Possible Causes
abilityName configured in the target skillProfiles is neither a UIAbility nor a service-type ExtensionAbility.
Solution
Set abilityName to a UIAbility or a service-type ExtensionAbility.
Error Message
The suffix of srcEntry value XXX is invalid in skillProfiles[name='YYY']. Only .ets source code files are supported. At file: ZZZ.
Symptom
Only .ets files can be configured in srcEntries of skillProfiles.
Possible Causes
The file configured in srcEntries of skillProfiles does not have the .ets suffix.
Solution
Replace the file specified in srcEntries with an .ets file.
Error Message
srcEntry value XXX must start with ./ or ../ in skillProfiles[name='YYY']. At file: ZZZ.
Symptom
The paths configured in srcEntries of skillProfiles must start with ./ or ../.
Possible Causes
A path configured in srcEntries of the target skillProfiles does not start with ./ or ../.
Solution
Ensure that all paths configured in srcEntries start with ./ or ../.
Error Message
When bundleType is 'skill', only one skill module is allowed, but XXX skill modules are found: YYY.
Symptom
When bundleType in the app.json5 file is set to skill, only one module of type skill can be created.
Possible Causes
Multiple modules of type skill are configured in the project.
Solution
Remove unnecessary modules of type skill, leaving only one module.
Error Message
When bundleType is 'skill', only one skill module is allowed and moduleType must be of type 'skill'. However, the following non-skill modules are found: XXX.
Symptom
When bundleType in the app.json5 file is set to skill, the app can contain only one module, and the module type must be set to skill. That is, the type field in the module.json5 file must be set to skill.
Possible Causes
One or more modules of a type other than skill are configured in the project.
Solution
Remove the modules of a type other than skill, leaving only one module of type skill.
Error Message
A skill module supports only one skill profile, but XXX skill profiles are detected in module 'YYY'. At file: ZZZ.
Symptom
The skillProfiles configuration item in the module.json5 file of a skill module can contain only one skill profile. That is, the skillProfiles array must have exactly one element.
Possible Causes
Multiple skill profiles are configured for skillProfiles in a skill module.
Solution
Remove the extra skill profiles, leaving only one.
Error Message
When bundleType is 'XXX', the skill module is not allowed. Remove module 'YYY' or change bundleType to 'skill'. At file: ZZZ.
Symptom
When bundleType in the app.json5 file is not set to skill, the module type cannot be skill.
Possible Causes
The bundle type configured in the project does not match the module type.
Solution
Either remove the module of type skill, or change the value of bundleType to skill.
Error Message
homePage and relatedPage must refer to different pages.
Symptom
homePage and relatedPage must point to different pages.
Possible Causes
homePage and relatedPage are configured with the same value.
Solution
Configure homePage and relatedPage to point to different pages.
Error Message
fullScreenPages cannot contain homePage or relatedPage.
Symptom
The pages configured in fullScreenPages must not include homePage or relatedPage.
Possible Causes
The pages configured in fullScreenPages include homePage or relatedPage.
Solution
Ensure that the pages configured in fullScreenPages do not include homePage or relatedPage.
Error Message
The corresponding version cannot be found in the SDK path. SDK path: XXX.
Symptom
The SDK of the corresponding version cannot be found in the SDK path.
Possible Causes
Solution
Error Message
compileSdkVersion is incompatible with the current DevEco Studio version. configured version: XXX, DevEco Studio version: YYY.
Symptom
The value of compileSdkVersion is incompatible with the current DevEco Studio version.
Possible Causes
compileSdkVersion configured in the project-level build-profile.json5 file is incompatible with the current DevEco Studio version.
Solution
For a HarmonyOS project, the compileSdkVersion field does not need to be explicitly configured. The SDK version built in DevEco Studio is used by default during compilation. Remove the compileSdkVersion field from the build-profile.json5 file, or set it to the SDK version matching the current DevEco Studio.
Error Message
Your local SDK version is outdated. Please update the SDK version.
Symptom
The SDK version is outdated and needs to be upgraded.
Possible Causes
The current project is an OpenHarmony project using API version 23, but the SDK version is earlier than 6.1.0.32.
Solution
Error Message
The current modelVersion does not support setting targetSdkVersion, compatibleSdkVersion, or compileSdkVersion as strings.
Symptom
For the current model version (modelVersion), targetSdkVersion, compatibleSdkVersion, and compileSdkVersion cannot be set to string values.
Possible Causes
The current project is an OpenHarmony project with modelVersion earlier than 6.0.0.
Solution
Error Message
An error occurred when verifying the shareFiles configuration item: XXX. At file: YYY.
Symptom
An error occurred during verification of the shareFiles configuration.
Possible Causes
Solution
Error Message
The current SDK version does not match the Java environment. Please configure JDK 24 or earlier.
Symptom
The current SDK version does not match the JDK version. JDK 24 or earlier is required.
Possible Causes
The current project is an OpenHarmony project using API version 22, but the JDK version in the current environment is 25.
Solution
Error Message
The 'runtimeOS' field of product: 'XXX' is set to 'OpenHarmony', which does not support the 'deduplicateSo' field. At file: YYY
Symptom
This is an OpenHarmony project, and the deduplicateSo field is not supported.
Possible Causes
The runtimeOS field of this product is set to OpenHarmony, and the deduplicateSo field is configured.
Solution
If the runtimeOS field of this product is set to OpenHarmony, remove the deduplicateSo field. Alternatively, set runtimeOS to HarmonyOS.