| Result Code | Value | Description | Solution |
|---|---|---|---|
| GamesStatusCodes.GAME_STATE_SUCCESS | 0 | Success. | - |
| GamesStatusCodes.GAME_STATE_FAILED | -1 | Common game API failure. | - |
| GamesStatusCodes.GAME_STATE_ERROR | 7001 | Common error. | - |
| GamesStatusCodes.GAME_STATE_NETWORK_ERROR | 7002 | Network error or incorrect service address setting on AppGallery. | Ensure that the network is normal and that the service address setting on AppGallery is correct. |
| GamesStatusCodes.GAME_STATE_USER_CANCEL | 7003 | The user cancels the operation. | Call the API again when necessary. |
| GamesStatusCodes.GAME_STATE_USER_CANCEL_LOGIN | 7004 | The user cancels the sign-in. | If a user cancels sign-in, you can instruct the user to sign in again. |
| GamesStatusCodes.GAME_STATE_PARAM_ERROR | 7005 | Incorrect input parameters. | Check the API input parameter setting. If the setting is correct but the failure persists, contact Huawei technical support. |
| GamesStatusCodes.GAME_STATE_NO_SUPPORT | 7006 | Game Service is unavailable in the region. | Ensure that the country or region where the player is located supports Game Service. |
| GamesStatusCodes.GAME_STATE_NOT_SUPPORT | 7010 | The current device does not support Game Service. | The current device does not support hardware registration. You can ignore this error. |
| GamesStatusCodes.GAME_STATE_PARAM_NULL | 7011 | Empty input parameter. | Check whether the API input parameter is empty. If the parameter is empty but the failure persists, contact Huawei technical support. |
| GamesStatusCodes.GAME_STATE_CALL_REPEAT | 7012 | Repeated API call. | An API cannot be called repeatedly within 10 seconds. |
| GamesStatusCodes.GAME_STATE_NOT_LOGIN | 7013 | The HUAWEI ID is not signed in. | Call the authorization API of Account Kit to instruct the user to complete account authorization. |
| GamesStatusCodes.GAME_STATE_DISAGREE_PROTOCOL | 7014 | The user does not agree to the joint operations privacy agreement. | Do not allow the user to enter the game. |
| GamesStatusCodes.GAME_STATE_REALNAME_REGISTER | 7016 | The user has completed identity verification. | The user has completed identity verification, and the relevant API does not need to be called again. |
| GamesStatusCodes.GAME_STATE_REGISTER_FAIL | 7017 | Incorrect system settings (game registration failure). | Check the parameter setting. If the setting is correct but the failure persists, contact Huawei technical support. |
| GamesStatusCodes.GAME_STATE_NOT_INIT | 7018 | The initialization API is not called. | The init API is not called. Call the init API before calling any Game Service API. |
| GamesStatusCodes.GAME_STATE_ACCOUNT_NOT_MATCH | 7019 | The signed-in HUAWEI ID is different from that of the device. | The HUAWEI ID has been switched. Please call the authorization API of Account Kit again to instruct the user to perform authorization and sign in to your game again. |
| GamesStatusCodes.GAME_STATE_REALNAME_CANCEL | 7021 | The user has canceled identity verification. | The user has canceled identity verification and API calling cannot continue. Please instruct the user to complete identity verification again. |
| GamesStatusCodes.GAME_STATE_REALNAME_NOT_SUPPORT | 7022 | The real-name duration statistics function is not supported for adult users or users whose identity is not verified. | If the user has not performed identity verification, instruct the user to do so. If the user is an adult, real-name duration statistics are not required. |
| GamesStatusCodes.GAME_STATE_CALL_FREQUENTLY | 7023 | Too frequent calls. | The API for obtaining basic player information is called too frequently. Call the API only when necessary. In other cases, you can also obtain player information from the cache. |
| GamesStatusCodes.GAME_STATE_APPGALLERY_NOT_SUPPORT | 7024 | The AppGallery APK has not been installed, or the AppGallery version does not support this function. | Instruct the user to install or update AppGallery to the latest version. |
| GamesStatusCodes.GAME_STATE_ACHIEVEMENT_NONEXIST | 7201 | The achievement or event is not found. | Check whether the achievement ID or event ID is the same as that created in AppGallery Connect. If so, contact Huawei technical support. |
| GamesStatusCodes.GAME_STATE_RINGINGS_NOT_FOUND | 7215 | No leaderboard data found. | Check whether the leaderboard ID is the same as that configured in AppGallery Connect. If so, contact Huawei technical support. |
| GamesStatusCodes.GAME_STATE_GAMESERVICE_AUTHOR_FAILURE | 7218 | Game Service authorization fails. The user does not agree to the AppGallery agreement. | You can ignore the result code. The AppGallery agreement will be autocratically displayed to the user for signing. |
| JosStatusCodes.JOS_PRIVACY_PROTOCOL_NO_AGREE | 7400 | The user has not agreed to the joint operations privacy agreement. | Call the init API to instruct the user to agree on the joint operations privacy agreement. |
| JosStatusCodes.JOS_PRIVACY_PROTOCOL_REJECTED | 7401 | The user rejects the joint operations privacy agreement. | Do not allow the user to enter the game. |
| Result Code | Value | Description | Solution |
|---|---|---|---|
| ErrorCode.ARGUMENTS_INVALID | 907135000 | Incorrect input parameters. | Verify that related input parameters are correctly set. For example, check whether appid in the Manifest file is correctly set. |
| ErrorCode.INTERNAL_ERROR | 907135001 | An internal error occurred and cannot be rectified. | Retry or restart the process. |
| ErrorCode.NAMING_INVALID | 907135002 | Failed to query the specified service API, because the API does not exist or the API instance failed to be created. | Verify that the service API exists and the API instance is successfully created. |
| ErrorCode.CLIENT_API_INVALID | 907135003 | Invalid ApiClient object. | Verify that ApiClient is not null and isConnected is true. |
| ErrorCode.EXECUTE_TIMEOUT | 907135004 | AIDL call timed out. | Verify that the service is not terminated and the binder is valid. |
| ErrorCode.NOT_IN_SERVICE | 907135005 | This service is unavailable in this region. | Verify that the API is supported in the region where the user is located. |
| ErrorCode.SESSION_INVALID | 907135006 | HMS Core SDK internal error. The AIDL connection session is invalid. | Generally, this error does not occur. Try again if this error code is returned. If the error persists after several retries, submit a ticket online. |
| ErrorCode.DENY_NETWORK | 907135007 | Failed to access the network, because you did not agree to the privacy statement in the out-of-box experience (OOBE) phase. | Agree to the privacy statement in the OOBE phase. |
| ErrorCode.GET_SCOPE_ERROR | 907135700 | Failed to call the gateway to query Scope of the app. |
|
| ErrorCode.SCOPE_LIST_EMPTY | 907135701 | Scope of OpenGW is not configured. |
|
| ErrorCode.CERT_FINGERPRINT_EMPTY | 907135702 | No certificate fingerprint is configured for OpenGW. |
|
| ErrorCode.PERMISSION_LIST_EMPTY | 907135703 | The permission of OpenGW is not configured. | Verify that the related function has been enabled during app creation. For example, to represent a user using unionId in an app, enable unionId when creating the app. |
| ErrorCode.GET_SCOPE_NETWORK_ERROR | 907135704 | Failed to call the gateway to query Scope of the app due to an exception returned by the server. |
|
| CommonCode.BusInterceptor.PRIVACY_CNCEL_ERROR_CODE | 907135705 | The user does not agree to the HMS Core privacy statement. | Ensure that the user has agreed to the HMS Core privacy statement. |
| CommonCode.ErrorCode.KIT_NOT_EXIST | 907135900 | The kit does not exist. | Verify that the kit is supported on the device. You can check whether the kit is included in the remoteconfig file on the device. If no, the kit is not supported on the device. |
| CommonCode.ErrorCode.DEVICE_POLICY_INTERCEPTOR | 907135901 | This function is currently unavailable on the device. | Do not use this function on the device. |
| StatusCode.AUTH_INFO_NOT_EXIST | 6002 | The app's authentication information does not exist. | Verify that the current app has been created and has applied for related services. |
| StatusCode.CERT_FINGERPRINT_ERROR | 6003 | Certificate fingerprint verification: Incorrect signing certificate fingerprint. |
|
| StatusCode.PERMISSION_NOT_EXIST | 6004 | API authentication: Permission not granted from HUAWEI Developers. |
|
| StatusCode.PERMISSION_NOT_AUTHORIZED | 6005 | API authentication: Permission not granted. | Verify that the current app has been created and has applied for related services. |
| StatusCode.PERMISSION_EXPIRED | 6006 | API authentication: Permission expired. | Verify that the current app has been created and has applied for related services. |
| ErrorCode.ERROR_CODE_FRAMEWORK_UPDATING | 1200 | The framework is being upgraded, and the AMS and PMS services are not ready. |
|
| ErrorCode.ERROR_CODE_FRAMEWORK_NOT_READY | 1201 | The AMS and PMS services are not ready. |
|
| ErrorCode.ERROR_CODE_PARAMETER_INVALID | 1210 | Invalid parameter. | Verify that the input parameter is correct. |
| ErrorCode.ERROR_CODE_SESSION_INVALID | 1211 | Invalid session. | Verify that the app ID of the caller is correct. |
| ErrorCode.ERROR_CODE_KIT_NEED_UPDATE | 1212 | The kit needs to be upgraded. |
|
| ERRORCODE.ERROR_CODE_KIT_BREAKER | 1213 | The kit needs to be in the circuit breaker state. | Do not call the kit because it is unavailable in the circuit breaker state. |
| ERRORCODE.ERROR_CODE_FRAMEWORK_BREAKER | 1214 | The framework needs to be in the circuit breaker state. | Do not call the framework because it is unavailable in the circuit breaker state. |
| ERRORCODE.ERROR_CODE_MEMORY_OVER_LIMIT | 1215 | The memory usage exceeds the threshold. |
|
| ERRORCODE.ERROR_CODE_AUTH_FAILED | 1217 | Kit authentication failed. |
|
| ERRORCODE.ERROR_CODE_RUNTIME_AMS | 1230 | An error occurs during AMS running. |
|
| ERRORCODE.ERROR_CODE_RUNTIME_PMS | 1240 | An error occurs during PMS running. |
|
| ERRORCODE.ERROR_CODE_RUNTIME_KAC | 1250 | An error occurs during KAC running. |
|
| ERRORCODE.ERROR_CODE_RUNTIME_OTHER | 1260 | Other types of errors. | Obtain relevant error logs and submit a ticket online. |
| BaseCode.OK | 0 | Success. | - |
| BaseCode.RESULT_NULL | -1 | The returned object is null. | Contact HMS technical support for assistance. |
| BaseCode.PARAM_ERROR | -2 | The input parameter is set to null. | Use the public builder BaseAdapter to build an instance object, and ensure that the input parameter is not set to null. |
| BaseCode.ACTIVITY_NULL | -3 | The reference of the passed Activity object is null. | Ensure that the passed object is Activity during the initialization of the HuaweiApi class. |
| BaseCode.NO_SOLUTION | -4 | The service side does not return Intent or PendingIntent. | Obtain relevant error logs and submit a ticket online. |
| BaseCode.URI_IS_NULL | -5 | Failed to obtain the URI field in the header. | Verify that apiName is not null or an empty string. |
| BaseCode.TRANSACTION_IS_NUL | -6 | Failed to obtain the transaction field in the header. | If the transactionId field fails to be obtained or is empty, verify that the field is passed. |
| BaseCode.DATA_NULL_IN_INTENT | -7 | The data field in the intent returned by onActivityResult is set to null, or the intent does not record the update result. | The intent returned by the framework is empty or the intent does not record the update result. Obtain relevant error logs and submit a ticket online. |
| BaseCode.SOLUTION_GET_RESPONSE_CODE_ERROR | -8 | Failed to obtain the service execution result when the GUI processing result is obtained using an intent. | The solution fails to be started. Contact the framework technical support for assistance. |
| BaseCode.NO_AVAILABLE_LIB_ERROR | -9 | The resolution cannot be done because you have not integrated the availableupdate SDK. | Ensure that you have integrated the avaliableupdate SDK. |
| BaseCode.KPMS_UPDATE_FAILED | -10 | The kit failed to be updated using the KPMS. | 1. Verify that the network is normal. 2. Verify that relevant kits have been released. 3. If the fault persists, submit a ticket online. |
| AvailableCode.SERVICE_MISSING | 1 | The device is not installed with HMS Core (APK). | Download and install HMS Core (APK) on the device. |
| AvailableCode.SERVICE_VERSION_UPDATE_REQUIRED | 2 | HMS Core (APK) installed is out of date. | Update HMS Core (APK) from AppGallery. |
| AvailableCode.SERVICE_DISABLED | 3 | HMS Core (APK) installed on the device is unavailable. | 1. Update HMS Core (APK) from AppGallery. 2. Change settings to allow HMS Core (APK) to automatically start and allow other apps to associatively start HMS Core (APK). |
| ResolutionResult.INTERNAL_ERROR | 8 | Internal error. | Try again. |
| AvailableCode.CANCELED | 13 | The user cancels the download or installation, or the app uses an incorrect certificate. |
|
| AvailableCode.SERVICE_UNSUPPORTED | 21 | The device is outdated and cannot be supported. | Use a later-version device. |
| AvailableCode.ERROR_ON_ACTIVITY_RESULT | 25 | Failed to obtain the activity result because the update page is closed unexpectedly. | Contact Huawei technical support and submit a ticket online. |
| AvailableCode.ERROR_NO_ACTIVITY | 26 | The Dialog cannot be displayed because no Activity object is passed. | Ensure that the passed object is Activity during the initialization of the HuaweiApi class. The Dialog can be displayed only when the passed Activity is not empty. |
| AvailableCode.USER_IGNORE_PREVIOUS_POPUP | 27 | An update Dialog has already been displayed in the frontend. | The user has not clicked buttons in the update popup or the download and installation have not completed within 1 minute after the user clicks buttons in the update popup. Check for version update again. |
| AvailableCode.APP_IS_BACKGROUND_OR_LOCKED | 28 | The update Dialog failed to be displayed because the app is running in the background or the screen of the device is locked. | Ensure that the app is running in the foreground. |
| AvailableCode.HMS_IS_SPOOF | 29 | HMS Core (APK) is spoofed. | Reinstall HMS Core (APK) from HUAWEI AppGallery. |
| AvailableCode.USER_ALREADY_KNOWS_SERVICE_UNAVAILABLE | 30 | HMS Core (APK) is not installed or is not in the required version on the device. | Install the latest version of HMS Core (APK). |
| AvailableCode.CURRENT_SHOWING_SERVICE_UNAVAILABLE | 31 | The popup indicating that HMS Core (APK) is not installed or is not in the required version shows up repeatedly. | Close the popup and install the latest version of HMS Core (APK). |
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.