目录

TypeConstantResult CodeDescription
HMS SDK Framework Error CodeFor details, see HMS SDK Framework Error.
Game Service Error CodeGAME_STATE_SUCCESS0Success.
GAME_STATE_FAILED-1Common game API failure.
GAME_STATE_ERROR7001Common error.
GAME_STATE_NETWORK_ERROR7002Network error.
GAME_STATE_USER_CANCEL7003The user cancels the operation.
GAME_STATE_USER_CANCEL_LOGIN7004The user cancels the sign-in.
GAME_STATE_PARAM_ERROR7005Incorrect input parameters.
GAME_STATE_NO_SUPPORT7006The game service is unavailable in the region.
GAME_STATE_NOT_SUPPORT7010The current device does not support the game service.
GAME_STATE_PARAM_NULL7011Empty input parameters.
GAME_STATE_CALL_REPEAT7012Repeated API call.
GAME_STATE_NOT_LOGIN7013The HUAWEI ID is not signed in.
GAME_STATE_NOT_REGISTER7015The hardware capability is not registered.
GAME_STATE_REALNAME_REGISTER7016The user has used the real name.
GAME_STATE_REGISTER_FAIL7017Incorrect system settings (game registration failure).
GAME_STATE_NOT_INIT7018The initialization API is not called.
GAME_STATE_ACCOUNT_NOT_MATCH7019The signed-in HUAWEI ID is different from that of the device.
GAME_STATE_ACHIEVEMENT_NO_UPGRADE7200The achievement is not increased.
GAME_STATE_ACHIEVEMENT_NONEXIST7201The achievement is not found.
GAME_STATE_ACHIEVEMENT_UNLOCKED7202The achievement is unlocked.
GAME_STATE_ACHIEVEMENT_UNLOCK_FAILED7203The achievement fails to be unlocked.
GAME_STATE_ACHIEVEMENT_NOT_SUPPORT7204AppAssistant does not support achievement display. (The EMUI version is earlier than 9.0, AppAssistant is not installed, the AppAssistant version is earlier than10.1, or the app has not been released.)
GAME_STATE_RANKINGS_NOT_SUPPORT7205AppAssistant does not support leaderboard display. (The EMUI version is earlier than 9.0, AppAssistant is not installed, or the AppAssistant version is earlier than 10.3, or the app has not been released.)
GAME_STATE_ARCHIVE_ADD_FAILED7206Failed to add the archive file.
GAME_STATE_ARCHIVE_CONFLICT_LOST7207The conflict does not exist.
GAME_STATE_ARCHIVE_OPEN_FAILED7208An error occurred when reading the content of the archive file.
GAME_STATE_ARCHIVE_ADD_FAILED7209Failed to create the archive.
GAME_STATE_ARCHIVE_DIRECTORY_FAILED7210The root folder for the archive was not found or could not be created when the archive was submitted.
GAME_STATE_ ARCHIVE_NOT_FOUND7211The specified archive does not exist.
GAME_STATE_ARCHIVE_NOT_SUPPORT7212AppAssistant does not support saved game display. (The EMUI version is earlier than 9.0, AppAssistant is not installed, or the AppAssistant version is earlier than 10.3, or the app has not been released.)
GAME_STATE_ARCHIVE_NUM_MAX_LIMIT7213The number of archives has reached the upper limit.
GAME_STATE_ARCHIVE_SIZE_MAX_LIMIT7214The size of the archive image or file has reached the upper limit.
GAME_STATE_RINGINGS_NOT_FOUND7215No leaderboard data found.
GAME_STATE_ARCHIVE_IMAGE_NOT_SUPPORT7216Unsupported archive image format.
GAME_STATE_ARCHIVE_COMMIT_CACHED7217The archive is not uploaded, but only cached locally.
GAME_STATE_GAMESERVICE_AUTHOR_FAILURE7218Game service authorization failed. The user does not agree to the AppGallery agreement.
GAME_STATE_ARCHIVE_NO_DRIVE7219The user has not enabled HUAWEI Drive Kit Service.
GAME_STATE_REALNAME_CANCEL7021The user has canceled real-name authentication.
GAME_STATE_REALNAME_NOT_SUPPORT7022Game duration statistics by real name is not supported because the user is an adult or has not performed identity verification.
GAME_STATE_CALL_FREQUENTLY7023Too frequent calls.