Error Message
The bundleName attribute does not exist.
Symptom
Failed to obtain the bundle name.
Possible Causes
The bundleName field in the app.json5 file is empty or missing.
Solution
Check whether bundleName is correctly configured in the app.json5 file.
Error Message
The product to debug cannot be empty.
Symptom
Failed to obtain product during attach debugging.
Possible Causes
product configured for the current module is incorrect.
Solution
Ensure that the applyToProducts configuration for the corresponding module in the project-level build-profile.json5 file is correct. For details, see Building a HAP and App Pack.
Error Message
The target to debug cannot be empty.
Symptom
Failed to obtain target during attach debugging.
Possible Causes
target configured for the current module is incorrect.
Solution
Ensure that the applyToProducts configuration for the corresponding module in the project-level build-profile.json5 file is correct. For details, see Building a HAP and App Pack.
Error Message
Failed to start debugging. Click the Debug button again to retry.
Symptom
Failed to start debugging.
Possible Causes
An exception occurs during the debugging startup process.
Solution
Click the Debug button to restart debugging.
Error Message
Please try to match the API version of the device and the app. The current device does not contain the following SysCap attributes in the rpcid.json file: XXX. Make sure the device supports all the SysCap attributes required for running the app.
Symptom
The currently connected device lacks the SysCap that the app requires.
Possible Causes
The device version does not match the app.
Solution
The following uses SystemCapability.Security.DeviceAuth as an example:
// entry/src/main/syscap.json
{
"devices": {
"general": ["phone"] // Same as deviceTypes in module.json5
},
"production": {
"removedSysCaps": [
"SystemCapability.Security.DeviceAuth"
]
}
} Error Message
Error running entry : Ability not specified.
Symptom
No ability is specified.
Possible Causes
No ability is specified after Specified Ability is selected in the Run/Debug Configurations panel.
Solution
Open the Run/Debug Configurations panel and set the ability under Specified Ability.

Error Message
Cannot debug the project in previewer when its build mode is release.
Symptom
The Previewer does not support debugging in release build mode.
Possible Causes
The Previewer is used for debugging, and the build mode is release.
Solution
Change the build mode to debug and start debugging again.
Error Message
Project sync is in progress. Wait until it is complete before you start running or debugging.
Symptom
A run or debug operation is initiated while the project synchronization is in progress.
Possible Causes
A run or debug operation is initiated while the project synchronization is in progress.
Solution
Wait for the project synchronization to complete before initiating a run or debug operation.
Error Message
No module found. Make sure the project sync is completed successfully and the module is set in Edit Configuration > General.
Symptom
The module in the current Run/Debug Configurations panel is empty.
Possible Causes
The project synchronization failed.
Solution
Synchronize the project again and ensure that the synchronization is successful.
Error Message
The target can not be empty. Check the build-profile.json5 file of the project root directory and make sure the targets of the modules in configuration is set to specified product: default in applyToProducts.
Symptom
target is empty during runtime.
Possible Causes
target configured for the current module is incorrect.
Solution
Ensure that the applyToProducts configuration for the corresponding module in the project-level build-profile.json5 file is correct. For details, see Building a HAP and App Pack.
Error Message
The product can not be empty.
Symptom
product is empty during runtime.
Possible Causes
The product configuration is incorrect.
Solution
Ensure that the applyToProducts configuration for the corresponding module in the project-level build-profile.json5 file is correct. For details, see Building a HAP and App Pack.
Error Message
Cannot run or debug the app when no ability is launched. Specify an ability (the default or any specified one) to launch under Launch Options in Run/Debug Configurations, and then try again.
Symptom
Failed to run or debug the app when no ability is launched. Set an ability (default or specified) under Launch Options in the Run/Debug Configurations panel and try again.
Possible Causes
Launch Options in the Run/Debug Configurations panel is set to Nothing.
Solution
Set an ability (default or specified) under Launch Options in the Run/Debug Configurations panel and try again.
Error Message
Debugging with Previewer does not support the ExtensionAbility type.
Symptom
Debugging with the Previewer does not support ExtensionAbility.
Possible Causes
During debugging with the Previewer, Specified Ability in the Run/Debug Configurations panel is set to ExtensionAbility.
Solution
Set an ability (default or a specified one other than ExtensionAbility) under Launch Options in the Run/Debug Configurations panel and try again.
Error Message
Previewer does not support this app.
Symptom
Previewer debugging is not supported for this app.
Possible Causes
Solution
Error Message
Simulator does not support this app.
Symptom
The Simulator does not support this app.
Possible Causes
The app is not a lite wearable app.
Solution
Error Message
Select a device first.
Symptom
No device is selected. Select a device first.
Possible Causes
No device is selected.
Solution
Connect a real device, or start the Emulator and select a device, then run or debug the app.
Error Message
Some exceptions occurred in this operation, please re-run.
Symptom
An exception occurs during the current operation. Please re-run.
Possible Causes
The currently connected device is abnormal.
Solution
Reconnect the device and run the project again.
Error Message
FileTransfer Failed: Error while Deploy Hap.
Symptom
Failed to install the HAP.
Possible Causes
The device connection is abnormal.
Solution
Error Message
Failed to get the device apiVersion.
Symptom
Failed to obtain the device system API version.
Possible Causes
The connection to the selected device is abnormal.
Solution
Reconnect the device or restart DevEco Studio.
Error Message
compatibleSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the device.
Symptom
The minimum compatible API version configured in the project does not match the device API version.
Possible Causes
The minimum compatible version configured in the project is later than the device API version.
Solution
Run the hdc shell param get const.ohos.apiversion command to query the API version of the current device and compare it with the API version of the compatibleSdkVersion field configured in the project-level build-profile.json5 file. If the versions do not match, adopt the following solutions:
Solution 1: Upgrade the device system version to match the version required by the project. You can do this through the system settings on the device.
Solution 2: Lower the compatible API version of the project. Click
in the upper-right corner of DevEco Studio and select an earlier version for Compatible SDK.

Error Message
No port available.
Symptom
There is no available port number.
Possible Causes
Ports on the current computer are restricted by security software or occupied.
Solution
Error Message
No executable ability found.
Symptom
No executable ability is found.
Possible Causes
The ability is not configured correctly, and the project fails to be synchronized.
Solution
Synchronize the project again.
Error Message
The local package does not exist.
Symptom
The local HAP does not exist.
Possible Causes
Solution

Error Message
The config.json or module.json file in the hap file does not exist.
Symptom
The config.json or module.json file does not exist in the HAP.
Possible Causes
The HAP generated during compilation and build is incorrect.
Solution
Choose Build > Clean Project on the menu bar to clear the cache and try again.
Error Message
Make sure the file count in the HAP does not exceed 1,000,000.
Symptom
The number of files in the HAP exceeds one million.
Possible Causes
The number of files in the generated HAP exceeds one million, possibly due to too many resource files.
Solution
Check and streamline the project resource files, then repackage them.
Error Message
The config.json or module.json file content is empty.
Symptom
The config.json or module.json file in the HAP is empty.
Possible Causes
The HAP generated during compilation and build is incorrect.
Solution
Choose Build > Clean Project on the menu bar to clear the cache and try again.
Error Message
The deviceType or apiVersion of the target device does not match that configured in the XXX file.
Symptom
The device type or API version (apiVersion) of the connected device does not match the project configuration.
Possible Causes
Solution
Error Message
The current device cannot be empty.
Symptom
No device is connected.
Possible Causes
No device is connected, or the device connection is abnormal.
Solution
Reconnect the device and start debugging again.
Error Message
The FA model does not support the debugLine.
Symptom
The FA model project does not support DebugLine.
Possible Causes
The FA model project does not support DebugLine.
Solution
Deselect Enable DebugLine in the Run/Debug Configurations panel.
Error Message
Failed to obtain the SDK version. Check whether the SDK is installed.
Symptom
Failed to obtain the SDK version. Check whether the SDK is installed.
Possible Causes
The SDK is not downloaded, or the user-defined SDK configuration is incorrect.
Solution
Download the corresponding SDK or reconfigure the custom SDK.
Error Message
The SDK version is too low to support DebugLine. Update it to 4.1.0.21 or a later version.
Symptom
The SDK version is outdated and does not support DebugLine. Upgrade the version to 4.1.0.21 or later.
Possible Causes
The SDK version is earlier than 4.1.0.21.
Solution
Download and install DevEco Studio from the official website.
Error Message
Failed to obtain the Hvigor version.
Symptom
Failed to obtain the Hvigor version.
Possible Causes
The Hvigor tool is missing in DevEco Studio.
Solution
Check whether the Hvigor tool exists in the tools directory under the DevEco Studio installation directory. If it does not exist, download DevEco Studio again from the official website.
Error Message
The Hvigor version is too low to support DebugLine. Update it to 3.0.3-rc.1.s or a later version.
Symptom
The Hvigor version is outdated and does not support DebugLine. Upgrade Hvigor to version 3.0.3-rc.1.s or later.
Possible Causes
The DevEco Studio version is outdated.
Solution
Download and install DevEco Studio from the official website.
Error Message
TSan is not supported by the current SDK version. Update the DevEco Studio to the latest version and make sure the API version of your project is 12 or later.
Symptom
The current SDK version does not support TSan. Upgrade DevEco Studio to the latest version and ensure that the API version of your project is 12 or later.
Possible Causes
The DevEco Studio version is outdated or the API version of your project is earlier than 12.
Solution
Upgrade DevEco Studio to the latest version and ensure that the API version of your project is 12 or later.
Error Message
Main module is null.
Symptom
The main module is null.
Possible Causes
The project fails to be synchronized.
Solution
Choose File > Sync and Refresh Project from the menu bar to synchronize the project again. Ensure that the project synchronization succeeds before running the project.
Error Message
Thread Sanitizer is not supported on the target device. Disable this feature under Run > Edit Configurations > Diagnostics and try again. This feature is only available on phone,tablet,2in1,tv.
Symptom
The currently connected device does not support TSan. Deselect Thread Sanitizer in the runtime configuration and try again. Only phones, tablets, 2-in-1 devices, and TVs support TSan.
Possible Causes
The currently connected device is not a phone, tablet, 2-in-1 device, or TV.
Solution
Use a device that supports TSan, or choose Run > Edit Configurations > Diagnostics and deselect Thread Sanitizer.
Error Message
TSan is not supported on the current system version of the target device. Update the device system version to the latest version.
Symptom
The current device system version does not support TSan. Update the device system to the latest version.
Possible Causes
The current device system version does not support TSan.
Solution
Update the device system to the latest version.
Error Message
Cannot run or debug this module in Previewer while it has hot reload configured. Remove the hot reload configuration and try again.
Symptom
Hot reload is enabled in the currently selected runtime configuration, which does not support running/debugging with the Previewer. Reselect the runtime configuration and try again.
Possible Causes
Hot reload is enabled in the currently selected runtime configuration, which does not support running/debugging with the Previewer.
Solution
Run or debug the app on a real device or an emulator, or reselect the runtime configuration to run or debug with the Previewer.
Error Message
Make sure the module.json file in the HAP does not exceed 10 MB.
Symptom
The size of the module.json configuration file in the HAP exceeds 10 MB.
Possible Causes
The size of the module.json5 configuration file in the HAP exceeds 10 MB.
Solution
Optimize the content of the module.json5 configuration file.
Error Message
Failed to open the file. The directory or file does not exist.
Symptom
The local HAP does not exist.
Possible Causes
The HAP does not exist. Check whether the signed HAP is successfully packaged.
Solution
Ensure that the signed HAP is successfully packaged before running. For details about how to sign the HAP, see Configuring a Debug Signature.
Error Message
Failed to open the file. The current directory is not accessible due to insufficient permissions.
Symptom
HAP deployment failed due to insufficient permissions to access the HAP path.
Possible Causes
Insufficient permissions to access the HAP path.
Solution
For Windows, move the project out of the C drive. For macOS, grant DevEco Studio full disk access permissions, then re-run the project.
Error Message
File transfer failed due to insufficient disk space on the device.
Symptom
HAP deployment failed due to insufficient available disk space on the device.
Possible Causes
Data cannot be written due to insufficient available disk space on the device.
Solution
Check the available disk space on the device. If an emulator is used to run the project, click Wipe User Data to clear the emulator data, then restart the emulator and re-run the project.
Error Message
Cannot debug the project in the Simulator when its build mode is release.
Symptom
The Simulator does not support debugging in release mode.
Possible Causes
The Simulator is used for debugging, and the build mode is release.
Solution
Change the build mode to debug and start debugging again.