Are you sure you are using the CredentialManager from the androidx Jetpack library? Looks like you're using the one in the Android Framework instead of the one from Jetpack (androidx).