目录

Permission Error Codes

00307001 Failed to Create or Write a File

Error Message

EPERM: operation not permitted,create XXX failed.

Symptom

Failed to create or write file XXX.

Possible Causes

Users do not have the permission to create or write files.

Solution

Request the permissions to create and write files.

00307003 Incorrect bundleType of the HSP Dependency Package

Error Message

The currentBundleType is shared, but the Package XXX bundleType is not shared.

Symptom

bundleType of the project is shared, but the bundleType of package XXX is not.

Possible Causes

bundleType in the app.json5 file of the project is shared, but the bundleType of the dependency package is not.

Solution

Remove the dependency package.

00307005 File Already Occupied

Error Message

The file is occupied.

Symptom

The build process cannot perform operations on the file because it is occupied.

Possible Causes

The file in the project is occupied by another process or locked (for example, by antivirus software or encryption software), preventing the build process from accessing it with the required permissions.

Solution

  1. Check whether the file that triggered the error is occupied by another process. Verify whether access restrictions are applied to the project directory or the DevEco Studio installation directory.
  2. Temporarily disable the antivirus software to determine whether it is causing the error.