Shooky Shooky - 1 year ago 139
Android Question

Android Credentials API - No eligible accounts

I am attempting to use the Google Credentials API to store credentials for my app. I have downloaded and installed both sample apps from here ( as well as tried the code in my own app. When attempting to save any credentials I get the following error - Status{statusCode=No eligible accounts can be found, resolution=null}.

I am testing on a Nexus 5x with a single Gmail account configured.

Any help would be greatly appreciated.

Answer Source

To use the credentials API a google account with Smartlock enabled is required. Smartlock is currently not supported by accounts with custom passphrase encryption (as was my issue).

In addition, disabling custom encryption does not seem to update the setting correctly on the device, and I was not willing to clear the account and re-add it to see if that fixes the problem as was suggested to me

Credit to: Smart Lock for Passwords not working on certain phones, error message "No eligible accounts on this device"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download