目录

ArkTS API Error Codes

This section describes only error codes related to Graphics Accelerate Kit. For details about universal error codes, please refer to Universal Error Codes.

1016600000 The Current API Cannot Be Called in the Resource Acceleration ExtensionAbility

Error Message

The API call from an ExtensionAbility is not allowed.

Error Description

This API cannot be called in the asset acceleration ExtensionAbility.

Possible Causes

This API cannot be called in the asset acceleration ExtensionAbility.

Solution

Check whether this API is in the range of APIs allowed by the asset acceleration ExtensionAbility. Only the following APIs provided by assetDownloadManager can be called:

1016600001 The Domain Name of the Download Task Is Not in the Trustlist

Error Message

The domain name of the download task is not in the domain name trustlist.

Error Description

The domain name of the download task is not in the trustlist.

Possible Causes

The domain name of the download task is not in the trustlist.

Solution

1016600002 The Task ID or Group ID Does Not Exist During Download Task Pausing, Resuming, or Obtaining

Error Message

The task ID or group ID entered during operations such as pause, resume, and fetch does not exist.

Error Description

The task ID or group ID does not exist during download task pausing, resuming, or obtaining.

Possible Causes

No operable task ID or group ID is found.

Solution

The task ID or group ID does not exist. Ensure that the task ID or group ID is correct.

1016600003 The Current Task Status Does Not Support the Current Operation

Error Message

The current task status does not support the current operator.

Error Description

The current task status does not support the current operation.

Possible Causes

The current task status does not match the current operation. For example, to resume a download task that is not paused, or to pause a download task which has already been paused.

Solution

Before performing an operation on a task, check the current status of the task and ensure that the task operation matches the task status. For example, call the fetchAllAssetDownloadTasks method to view the task status.

1016600004 The Task Queue Is Full

Error Message

The application task queue is full.

Error Description

The task queue is full.

Possible Causes

The number of asset download tasks in the queue exceeds 200.

Solution

Wait until the current download task is complete and submit tasks only when there is space available in the task queue.

1016600005 Execution of a Resource Acceleration ExtensionAbility Method Times Out

Error Message

Extension life cycle callback execution timed out.

Error Description

The execution of an asset acceleration ExtensionAbility method times out.

Possible Causes

The execution of the asset acceleration ExtensionAbility method is not finished within its lifecycle.

Solution

Try again later. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1016600006 Abnormal Method Within the Asset Acceleration ExtensionAbility Lifecycle

Error Message

An exception occurs in the callback extension js.

Error Description

There is an abnormal method within the asset acceleration ExtensionAbility lifecycle.

Possible Causes

The internal processing logic of the asset acceleration ExtensionAbility times out.

Solution

Check whether there are uncaught exceptions in the methods within the asset acceleration ExtensionAbility lifecycle.

1016600094 Resource Acceleration Service Exception

Error Message

Task service ability error.

Error Description

The asset acceleration service is abnormal.

Possible Causes

The game asset acceleration service is abnormal.

Solution

Try again later. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1016600401 Incorrect Resource Acceleration Parameter

Error Message

Parameter error.

Error Description

Incorrect asset acceleration parameter.

Possible Causes

The type or value of an input parameter is incorrect.

Solution

Ensure that the input parameter is correct and try again.

1019400001 Failed to Start the Acceleration Service

Error Message

Service error. 1. Connect to system service failed; 2.System service failed to communicate with dependency module.

Error Description

Failed to start the acceleration service.

Possible Causes

The game fails to start the acceleration service.

1. The system service fails to be connected.

2. The system service cannot communicate with the dependent module.

Solution

Try again later. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1019400002 Game Not in Pre-started State

Error Message

The app is not in a preloading state.

Error Description

The game is not in pre-started state.

Possible Causes

The current game is not running in pre-started state.

Solution

You can obtain the startup reason through want.parameters in the onCreate lifecycle callback of UIAbility. If the value of ohos.params.gamePrelaunch is true, the current UIAbility is running in pre-started state.

1019400401 Incorrect Acceleration Start Parameter

Error Message

Parameter error.

Error Description

Incorrect acceleration startup parameter.

Possible Causes

The type or value of an input parameter is incorrect.

Solution

Ensure that the input parameter is correct and try again.

1009503001 Game Buddy Service Is Being Initialized

Error Message

The game buddy service is initializing, please retry later.

Error Description

The game buddy service is being initialized. Please try again later.

Possible Causes

After detecting that a game is launched, the system starts the game buddy service and triggers the initialization process.

Solution

Exit the current game process, wait for a while, and then launch the game again. If the game buddy service still cannot be started, submit a ticket online. Huawei will get back to you as soon as possible.

1009503002 The Game Buddy Service Does Not Support the Current Game or No Game Is Running

Error Message

No game is running, or the current game is not supported by the game buddy service. Please launch a supported game first.

Error Description

No game is running, or the game buddy service does not support the game. Start a game supported by the game buddy service first.

Possible Causes

No game is running, or the game buddy service does not support the game.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.