We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesLocation KitAndroidResult Codes

Result Codes

Content overview

Service Errors

Expand

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_NOT_AVAILABLE

10200

The geofence service is unavailable.

Use a device supporting the geofence function.

GEOFENCE_TOO_MANY_GEOFENCES

10201

The number of geofences exceeds the limit.

Add a maximum of 100 geofences for an app.

GEOFENCE_TOO_MANY_PENDING_INTENTS

10202

A maximum of 5 PendingIntent objects are allowed.

Reuse existing PendingIntent objects.

GEOFENCE_INSUFFICIENT_LOCATION_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.

GEOFENCE_REQUEST_TOO_FREQUENT

10205

Geofences are added too frequently.

Try again later.

GEOFENCE_SERVICE_SWITCH_OFF

10206

The geofence service switch is turned off.

Verify that the geofence service switch has been turned on.

ENABLE_CONVERSION_EVENT_FAILED

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.

NOT_SUPPORT_WATCH

10601

This service does not support smart watches.

Call the service on supported devices. For details, please refer to Supported Devices.

SDK Errors

Expand

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

Invalid parameter.

Verify that the parameter is correct.

PERMISSION_DENIED

10803

Insufficient permission.

  1. Verify that related permissions have been assigned to your app.
  2. Check permission configuration in the AndroidManifest.xml file based on involved permissions in the development guide.

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.

AGC_CHECK_FAIL

10808

AppGallery Connect identity verification failed.

Verify that you have configured app information in AppGallery Connect.

NO_PRECISE_LOCATION_PERMISSION

10809

No precise location permission.

Check whether your app has the ACCESS_FINE_LOCATION permission.

If the error persists, submit a ticket online. Huawei will get back to you as soon as possible. For details about how to submit a ticket online, please refer to Submitting a Ticket Online.

Search in References
Enter a keyword.