Error Message
The length of path exceeds the maximum length: XXX.
Symptom
The file path exceeds the maximum length limit.
Possible Causes
The total length of the file path exceeds the limit imposed by the operating system.
Solution
Error Message
The Node directory and node name cannot contain Chinese characters.
Symptom
The project path cannot contain Chinese characters.
Possible Causes
The project path contains Chinese characters.
Solution
Remove the Chinese characters from the project path.
Error Message
Invalid project path. Current path does not match: XXX.
Symptom
The project path is invalid.
Possible Causes
The project path contains Chinese characters or special characters.
Solution
Modify the project path and ensure that the path contains only letters, digits, hyphens (-), underscores (_), periods (.), parentheses (()), spaces, or at signs (@).
Error Message
The compatibleSDKVersion XXX cannot be smaller than YYY declared in library ZZZ or
The project's compatibleSdkVersion: XXX cannot be lower than the minimum compatible version YYY required by the dependencies: ZZZ.
Symptom
The version specified by compatibleSdkVersion of the current project cannot be lower than the minimum compatible version declared in the third-party library.
Possible Causes
The version specified by compatibleSdkVersion of the current project is lower than the minimum compatible version (compatibleSdkVersion) declared when the third-party library was packaged.
Solution
Use either of the following methods:
Error Message
Failed to build the app due to duplicate customized output names: XXX. At file: XXX.
Symptom
The custom output name is duplicate. As a result, the application fails to be built.
Possible Causes
The output name customized in the target configuration of the module is duplicate.
Solution
Check the targets configuration in the module-level build-profile.json5 file, ensuring that each output name is unique.
Error Message
Unsupported API version. TargetESVersion is supported after API 12. At file: XXX.
Symptom
TargetESVersion is only supported by API version 12 and later. The API version of the current project is earlier than API version 12.
Possible Causes
The compileSdkVersion or compatibleSdkVersion of the current project is earlier than API version 12.
Solution
Check the compileSdkVersion and compatibleSdkVersion configurations in the project-level build-profile.json5 file, ensuring that the versions are API version 12 or later.
Error Message
The runtimeOS that supports the insightintent project can only be HarmonyOS. At file: XXX.
Symptom
runtimeOS of the insight intent project only supports HarmonyOS.
Possible Causes
runtimeOS of the insight intent project is not set to HarmonyOS.
Solution
Check the project-level or module-level build-profile.json5 file and set runtimeOS to HarmonyOS.
Error Message
Unsupported API version. Insight intent is supported after API 11. At file: XXX.
Symptom
Insight intents are supported in projects of API version 11 or later.
Possible Causes
The compileSdkVersion or compatibleSdkVersion of the current project is earlier than API version 11.
Solution
Check the compileSdkVersion and compatibleSdkVersion configurations in the project-level build-profile.json5 file, ensuring that the versions are API version 11 or later.
Error Message
Unsupported SDK version. Insight intent is supported after API 11. At file: XXX.
Symptom
Insight intents are supported in projects of API version 11 or later.
Possible Causes
The SDK version is earlier than API version 11.
Solution
Download the latest DevEco Studio from the official website.
Error Message
The current SDK version does not support ArkData. At file: XXX.
Symptom
The current SDK version does not support ArkData.
Possible Causes
The current SDK version does not support ArkData.
Solution
Download the latest DevEco Studio from the official website.
Error Message
The current SDK version does not support uiSyntax. At file: XXX.
Symptom
The current SDK version does not support the UI syntax.
Possible Causes
The current SDK version does not support the UI syntax.
Solution
Download the latest DevEco Studio from the official website.
Error Message
Invalid configuration of runtimeOnly in XXX. At file: XXX.
Symptom
The runtimeOnly configuration is invalid. Dynamic import is not supported.
Possible Causes
runtimeOnly can be configured only for Stage model projects of API version 11 or later.
Solution
Error Message
Atomic service development is not supported for OpenHarmony stage model. At file: XXX
Symptom
Atomic service development is not supported for OpenHarmony projects in Stage model.
Possible Causes
runtimeOS of the atomic service project is set to OpenHarmony.
Solution
If you need to develop an atomic service, change runtimeOS in the project-level build-profile.json5 file to HarmonyOS.
Error Message
Atomic service development is not supported for compileSdkVersion/compatibleSdkVersion less than api 11. At file: XXX.
Symptom
compileSdkVersion or compatibleSdkVersion is earlier than API version 11, which does not support the development of atomic services.
Possible Causes
compileSdkVersion or compatibleSdkVersion of the project is earlier than API version 11, which does not support the development of atomic services.
Solution
Check the compileSdkVersion and compatibleSdkVersion configurations in the project-level build-profile.json5 file, ensuring that the versions are API version 11 or later.
Error Message
Atomic service development does not support Native development. At file: XXX.
Symptom
Native code development is not supported in the atomic service.
Possible Causes
The current project file XXX contains externalNativeOptions, which is related to native code development.
Solution
Remove externalNativeOptions from the atomic service project.
Error Message
Atomic service development only supported ArkTS widget. At file: XXX.
Symptom
Only ArkTS components can be used for atomic service development.
Possible Causes
JS components are used in the project.
Solution
Remove the code and configuration related to the JS components from the project.
Error Message
The integratedHsp can only be used in API 12 and later. At file: XXX.
Symptom
The integrated HSP is supported only by API version 12 and later.
Possible Causes
The compileSdkVersion or compatibleSdkVersion of the current project is earlier than API version 12.
Solution
Check the compileSdkVersion and compatibleSdkVersion configurations in the project-level build-profile.json5 file, ensuring that the versions are API version 12 or later.
Error Message
The integratedHsp is available only when useNormalizedOHMUrl is set to true. At file: XXX.
Symptom
useNormalizedOHMUrl must be set to true when the integrated HSP is used.
Possible Causes
useNormalizedOHMUrl is set to false.
Solution
Set useNormalizedOHMUrl in the project-level build-profile.json5 file to true.
Error Message
Only the byte code har supports to configure the bundledDependencies. At file: XXX.
Symptom
bundledDependencies can only be configured in the bytecode HAR.
Possible Causes
Solution
Error Message
Lite wearable only support JS.
Symptom
Lite wearable projects support only JS development.
Possible Causes
A TS file exists in the lite wearable project.
Solution
Exclude all non-JS files from the project.
Error Message
The XXX module YYY that the current module depends on does not support the device type: ZZZ, which may cause runtime exception on the device.
Symptom
The YYY module that the current module depends on does not support the device type ZZZ. As a result, a runtime exception may occur.
Possible Causes
The module.json file of the dependency module does not contain the current device type.
Solution
Select the module that supports the device type as the dependency.
Error Message
Invalid transformLib, its value should be a relative path.
Symptom
transformLib is invalid. The value must be a relative path.
Possible Causes
transformLib is not set to a relative path.
Solution
Set transformLib to a relative path.
Error Message
Invalid buildRoot value XXX.
Symptom
The buildRoot parameter is invalid.
Possible Causes
The buildRoot parameter specified during the execution of the hvigorw command starts with ...
Solution
Ensure that the directory specified by the buildRoot parameter is under the current module. That is, paths starting with .. are not allowed.
Error Message
Unknown abiFilter XXX.
Symptom
Unknown abiFilter configuration XXX.
Possible Causes
The configured abiFilter is not in the supported list or is misspelled.
Solution
Check the project-level or module-level build-profile.json5 file, ensuring that abiFilters contains only arm64-v8a and x86_64.
Error Message
Hvigor task 'XXX' not supported for building an 'ohosTest' target 'YYY'.
Symptom
ohosTest cannot be selected as the target when the HSP/HAR is built.
Possible Causes
ohosTest is selected as the target when the HSP/HAR is built using the CLI.
Solution
Error Message
Stage model module XXX does not allow Harmony library packages or modules in FA model. Build tasks will not be executed, and resources will not be packed.
Symptom
The stage model module XXX cannot depend on the Harmony library or module of the FA model. Otherwise, the build task cannot be executed and resources cannot be packaged.
Possible Causes
The module in the stage model depends on the library or module in the FA model.
Solution
Check the dependencies of XXX and remove the referenced Harmony libraries or modules of the FA model.
Error Message
Shared Library cannot depend on shared module self in module XXX at file: YYY.
Symptom
In the XXX module, the HSP (shared library) cannot depend on itself.
Possible Causes
The HSP module has a dependency on itself.
Solution
Remove the dependency of the HSP on itself.
Error Message
FA module XXX does not allow OpenHarmony npm packages, which artifactType is not original. Check at file: YYY.
Symptom
The FA model module cannot depend on non-source-code OpenHarmony npm packages.
Possible Causes
The OpenHarmony npm package on which the XXX module depends is bytecode or obfuscated source code.
Solution
Remove the XXX module's dependencies on the non-source-code OpenHarmony npm packages.
Error Message
FA model module XXX does not allow Harmony library packages or modules in Stage model. Build tasks will not be executed, and resources will not be packed. Check at file: YYY.
Symptom
The FA model module XXX cannot depend on the Harmony library or module of the stage model. Otherwise, the build task cannot be executed and resources cannot be packaged.
Possible Causes
The module in the FA model depends on the library or module in the stage model.
Solution
Check the dependencies of XXX and remove the referenced Harmony libraries or modules of the stage model.
Error Message
In HarmonyOS configuration:
- For API versions 10 to 25, the value of compatibleSdkVersion/targetSdkVersion must be a string (for example, '5.0.0(12)').
- For API version 26 and later, the value of compatibleSdkVersion/targetSdkVersion must be a string (for example, '26.0.0').
In OpenHarmony configuration:
- For API versions 10 to 25, the value of compileSdkVersion/compatibleSdkVersion/targetSdkVersion must be a numeric value (for example, 12).
- For API version 26 and later, the value of compileSdkVersion/compatibleSdkVersion/targetSdkVersion must be a string (for example,'26.0.0').
Symptom
For HarmonyOS configurations:
For OpenHarmony configurations:
Possible Causes
The value type of compileSdkVersion, compatibleSdkVersion, or targetSdkVersion is incorrect.
Solution
Check the project-level build-profile.json5 file and ensure that the value types of the preceding fields meet the requirements.
Error Message
JS module XXX does not allow ArkTS dependency YYY. Check at file: ZZZ.
Symptom
The JS module XXX cannot depend on ArkTS YYY.
Possible Causes
The JS module depends on ArkTS YYY.
Solution
Check the dependencies of the oh-package.json5 file of the XXX module and remove the dependency of ArkTS YYY.
Error Message
Worker terminated due to reaching memory limit: JS heap out of memory.
Symptom
The task is terminated due to insufficient JS heap memory.
Possible Causes
The heap memory is insufficient during task execution.
Solution
Error Message
UseNormalizedOHMUrl can be true only when Compatible SDK Version is 5.0.0 (12) or later.
Symptom
useNormalizedOHMUrl can be set to true only when compatibleSdkVersion is set to 5.0.0(12) or later.
Possible Causes
compatibleSdkVersion is set to 4.1.0(11) or earlier, and useNormalizedOHMUrl is set to true in the project-level build-profile.json5.
Solution
Set useNormalizedOHMUrl to false if compatibleSdkVersion is 4.1.0(11) or earlier.
Error Message
Bytecode HARs: XXX not supported when useNormalizedOHMUrl is not true.
Symptom
If useNormalizedOHMUrl is set to false, the bytecode HAR is not supported.
Possible Causes
The useNormalizedOHMUrl field in the project-level build-profile.json5 file is set to false, and the dependency chain of the current module contains the bytecode HAR.
Solution
If the dependency chain of the current compilation module contains the bytecode HAR, set useNormalizedOHMUrl in the project-level build-profile.json5 file to true.
Error Message
Found HSPs that have the same HAR.
Symptom
Multiple HSP modules depend on the same HAR.
Possible Causes
Multiple HSP modules depend on the same HAR.
Solution
For details, see Modular Design.
Error Message
autoLazyImport cannot be configured for the current API version. autoLazyImport can be used in the beta3 version of API 12 or higher versions.
Symptom
autoLazyImport is not supported in the current API version. It is supported in API version 12 beta3 and later.
Possible Causes
autoLazyImport is set to true in a version earlier than API version 12 beta3.
Solution
Use either of the following methods:
Error Message
Duplicated files found in module XXX. This may cause unexpected errors at runtime.
Symptom
Duplicate files exist in module XXX, which may cause runtime errors.
Possible Causes
The .so files with the same name exist in the module.
Solution
Use either of the following methods:
Error Message
This project is in the FA model and does not allow for external dependencies.
Symptom
The project in the FA model depends on an external project module.
Possible Causes
In the build-profile.json5 file of the project developed in the FA model, the value of the srcPath field contains a reference to an external project module.
Solution
In the project-level build-profile.json5 file, identify and remove any references to external project modules from the srcPath field.
Error Message
This project is in the stage model and does not allow for dependencies of modules in the FA model.
Symptom
The project in the stage model cannot depend on an FA model module.
Possible Causes
In the project-level build-profile.json5 file in the stage model, the value of the srcPath field contains a reference to a project module developed in the FA model.
Solution
In the project-level build-profile.json5 file, identify and remove any references to project modules developed in the FA model.
Error Message
Cannot depend on HAP modules outside of this project.
Symptom
The HAP module outside the project cannot be depended on.
Possible Causes
In the project-level build-profile.json5 file, the value of the srcPath field contains a reference to a HAP module outside of the current project.
Solution
Replace any references to HAP modules outside of the current project with references to HSP or HAR modules.
Error Message
ohpm install failed.
Symptom
Failed to install dependencies using ohpm.
Possible Causes
Network failure, incorrect ohpm mirror repository address, or incorrect dependency package names and versions defined in the oh-package.json5 file.
Solution
Check your network connectivity, and verify that the ohpm mirror repository address, dependency package names and versions configured in oh-package.json5 are correct.
Error Message
Task XXX was not found in the project XXX. Invalid command to execute the build task, please verify the parameters in the command and try again.
Symptom
The task cannot be found in the project. The build command is invalid. Check the parameters in the command and try again.
Possible Causes
The parameters in the build command are incorrectly set.
Solution
Error Message
Missing module configuration for external module outside the current project.
Symptom
The external modules used by the project are not configured.
Possible Causes
The external modules used by the project are not configured in the project-level build-profile.json5 file.
Solution
Check the project-level build-profile.json5 file and ensure that all the modules used by the project are configured in the modules field.
Error Message
A log of daemon process can be found at file: XXX.
Symptom
The Hvigor daemon process exits unexpectedly. You can view the logs in the specified file.
Possible Causes
The daemon process runs out of memory. For details, see the daemon logs.
Solution
Error Message
The executableBinaryPaths-path XXX should be a relative path. At file: YYY.
Symptom
The value of executableBinaryPaths-path must be a relative path.
Possible Causes
The value of executableBinaryPaths-path is not a relative path.
Solution
Set executableBinaryPaths-path to a relative path.
Error Message
skillProfiles can be configured only when bundleType is set to app or atomicService. However, the current value of bundleType is XXX. At file: YYY.
Symptom
skillProfiles of an application skill can be configured only when bundleType is app or atomicService.
Possible Causes
skillProfiles is configured in the module.json5 file of the module, but bundleType in the app.json5 file is not app or atomicService.
Solution
Error Message
The integratedHsp module does not support skillProfiles. At file: XXX.
Symptom
The integratedHsp module does not support skillProfiles configuration.
Possible Causes
The integratedHsp module does not support skillProfiles configuration.
Solution
Error Message
Unable to get dependency 'XXX''s version and name at file: XXX.
Symptom
Failed to obtain the version and name of the dependency.
Possible Causes
Parameterized version configuration via parameterFile is not supported for SO dependencies.
Solution
Configure SO dependencies using relative paths instead.