目录

Result Codes

Service Errors

Result Code

Value

Description

Solution

INTERNAL_ERROR

10000

Internal error.

Contact Huawei technical support.

ARGUMENTS_EMPTY

10100

The input parameter is empty.

Verify that the mandatory parameter is not empty.

ARGUMENTS_INVALID

10101

The input parameter is incorrect.

Verify that the parameter is correct.

PERMISSION_DENIED

10102

Insufficient permission.

Verify that the location permission has been assigned to HMS Core (APK). For details, please refer to FAQs.

NOT_IN_MOCK_MODE

10103

The mock mode is disabled.

Call setMockMode(true) to enable the mock mode.

NO_MATCHED_CALLBACK

10104

No matched callback.

Verify that the correct callback has been passed to the parameter list.

NETWORK_LOCATION_SERVICES_DISABLED

10105

The network location service is unavailable.

Enable the network location service on the location service page.

NO_MATCHED_INTENT

10108

No matched PendingIntent.

Use the same PendingIntent that is used when the request is sent.

NAVIGATION_NOT_AVAILABLE

10109

The service is unavailable.

Use a device supporting 3D elevated road navigation, or a device supporting the high-precision location capability.

NAVIGATION_EMPTY_RESULT

10110

The result is empty because the device does not have a barometric pressure sensor.

Use a device equipped with a barometric pressure sensor.

GEOFENCE_UNAVAILABLE

10200

The geofence service is unavailable.

Use a device supporting the geofence function.

GEOFENCE_NUMBER_OVER_LIMIT

10201

The number of geofences exceeds the limit.

Add a maximum of 100 geofences for an app.

GEOFENCE_PENDINGINTENT_OVER_LIMIT

10202

A maximum of 5 PendingIntent objects are allowed.

Reuse existing PendingIntent objects.

GEOFENCE_INSUFFICIENT_PERMISSION

10204

Insufficient permission to perform geofence-related operations.

  1. Verify that the location permission has been assigned to your app.
  2. Check declared permissions in the AndroidManifest.xml file, as described in Assigning App Permissions in "Developing the Geofence Service."

GEOFENCE_REQUEST_TOO_OFTEN

10205

Geofences are added too frequently.

Try again later.

ENABLE_CONVERSION_EVENT_FAILE

10300

Failed to register the activity conversion event.

Verify that the event is valid. If a valid event fails to be registered, contact the technical support.

ACTIVITY_IDENTIFICATION_NOT_AVAILABLE

10301

The activity identification service is unavailable.

Use a device supporting the activity identification function.

SDK Errors

Result Code

Value

Description

Solution

PARAM_ERROR_EMPTY

10801

The mandatory parameter is empty.

Verify that the mandatory parameter is not empty.

PARAM_ERROR_INVALID

10802

Incorrect parameter.

Verify that the parameter is correct.

PERMISSION_DENIED

10803

Insufficient permission.

  1. Verify that the location permission has been assigned to your app.
  2. Check declared permissions in the AndroidManifest.xml file, as described in Assigning App Permissions in "Developing the Location Service."

NO_MATCHED_CALLBACK

10804

No matched callback.

Verify that the correct callback has been passed to the parameter list.

NO_MATCHED_INTENT

10805

No matched intent.

Verify that the correct intent has been passed to the parameter list.

NOT_YET_SUPPORTED

10806

Not supported.

The API is currently unavailable.

METHOD_INVOKE_ERROR

10807

Method call error.

In the RequestLocationUpdates() method, the priority parameter can only be set to 100, 102, 104, or 105. If you need to set priority to 200 or 300, call the RequestLocationUpdatesEx() method.