A general error has occurred when using Mobile Key on Android Device

Created by David OBrien - Archived, Modified on Thu, 7 Dec, 2023 at 10:42 AM by David OBrien - Archived

How to identify the issue:

  • A user can open a lock using Mobile Key on an iOS device
  • The same action fails on Android with the message "A general error has occurred"
  • The Android Client SDK is v2.0.0


To resolve the issue:

  • Ensure that Bluetooth is enabled
  • Ensure the application has permission to use bluetooth
  • Update to the latest version of the SDK if the SDK is v2.0.0


The error is handled in the method onFailure(ClayException exception):


@Override
                public void onFailure(ClayException exception) {
                    Log.d("ClaySDK onFailure exception", exception.getMessage());

The log produces the following output:

D/ClaySDK onFailure exception: A general error has occurred


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article