| Result Code | Description | Solution |
|---|---|---|
| CE-001 | Failed to obtain the collection server URL. | Check whether collector_url is set in the agconnect-services.json configuration file. Do not change the URL specified by this parameter. |
| NE-001 | Failed to initialize the SSL connection. | Integrated in an Eclipse project: Check whether the CA root certificate file hianalyticscas.bks exists in the assets directory of the SDK release package. Integrated in an Android Studio project: Go to Support > Customer Service > Submit Question Online to submit your problem. Huawei technical support engineers will handle it in a timely manner. |
| NE-002 | Failed to verify the certificate. | Integrated in an Eclipse project: Check whether the CA root certificate file hianalyticscas.bks exists in the assets directory of the SDK release package. Integrated in an Android Studio project: Go to Support > Customer Service > Submit Question Online to submit your problem. Huawei technical support engineers will handle it in a timely manner. |
| NE-003 | No network permission. | Check whether you have the network permission. |
| NE-004 | I/O exception. | Go to Support > Customer Service > Submit Question Online to submit your problem. Huawei technical support engineers will handle it in a timely manner. |
| NE-005 | Connection error. | Check the network connection and try again. |
| NE-006 | Incorrect URL. | Check whether the value of collector_url in the agconnect-services.json configuration file is changed. Do not use an invalid URL. |
| PE-001 | Empty parameter. | Check whether the input parameter is empty based on logs. |
| PE-002 | The parameter value contains more than 256 characters. | Check whether the value of the input parameter contains more than 256 characters. |
| PE-003 | Mandatory parameters are missing. | Check whether any mandatory parameters are missing. |
| PE-004 | Reserved parameters are used. | Check whether any input parameters are key parameters reserved in the system (such as the event ID and attribute ID in automatic collection). |
| PE-005 | Too many event parameters. | Check whether too many parameters are passed to the bundle structure. A maximum of 2048 key-value pairs are allowed in the bundle structure and the length can be 200 KB at most. A maximum of 25 key-value pairs of user attributes are supported. |
| PE-006 | Incorrect format of parameter names. | Check whether parameter names such as the event ID and bundle key meet the verification rules. |
| IE-001 | SDK not initialized in the main thread. | Initialize the SDK in the main thread. |
| IE-002 | App not released in HUAWEI AppGallery. | Release the app in HUAWEI AppGallery. |
| IE-003 | HA SDK not initialized. | Check whether result code IE-004 or IE-005 is reported. |
| IE-004 | AppGallery Connect Core SDK not integrated. | Check whether the agconnect-core SDK is stored in the External Libraries directory of the project. |
| IE-005 | Correct HMS Core SDK not obtained. | Check whether SDK packages hms:opendevice and hms:base are stored in the External Libraries directory of the project and whether their versions match the HMS Core Analytics SDK version. |
| IE-006 | Collection function disabled. | Check whether the collection function (specified by setAnalyticsEnabled) is disabled. |
| SE-001 | Failed to initialize the SDK. | Check whether error code SE-002 or SE-003 is reported. |
| SE-002 | Failed to obtain the AAID. | Check whether SDK packages hms: opendevice and hms:base are stored in the External Libraries directory of the project and whether their versions match the HMS Core Analytics SDK version. |
| SE-003 | Failed to obtain a token from AppGallery Connect. | Check whether the agconnect-core SDK is stored in the External Libraries directory of the project. |