This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Initialization failed.
Description
This error code is reported when the framework fails to be initialized.
Possible Causes
The accessibility service cannot be accessed.
Solution
Run the param set persist.ace.testmode.enabled 1 command and restart the device.
Error Message
The API does not support concurrent calls.
Description
The API does not support concurrent calls.
Possible Causes
The async API does not use await to wait until the asynchronous execution is complete. As a result, the API is called concurrently.
Solution
Ensure that only one API call is executed at a time. The async API uses await to wait until the asynchronous execution is complete.
Error Message
Assertion failed.
Description
This error code is reported when the user assertion fails.
Possible Causes
The component that the user asserts to exist does not exist.
Solution
Check the existence of the component that is asserted to exist.
Error Message
The window or component is invisible or destroyed.
Description
The target component or window is invisible or has been destroyed, and no operation can be performed.
Possible Causes
After the target component or window is obtained, the page changes. As a result, the target component or window is lost.
Solution
Check whether the loss is caused by page changes.
Error Message
This operation is not supported.
Description
This error code is reported when the performed operation is not supported by the UI object.
Possible Causes
The component, window attribute, or device does not support the performed operation.
Solution
Check whether the UI component, window attribute, or device supports the performed operation.