Assigned
Status Update
Comments
ju...@veepee.com <ju...@veepee.com> #2
Forgot the image.
bl...@google.com <bl...@google.com> #3
Automated by Blunderbuss job android-credential-manager-autoassigner for config android_credman_config for component 1301097.
da...@google.com <da...@google.com> #4
Could you post instructions on how to reproduce it or a bugreport?
ju...@veepee.com <ju...@veepee.com> #5
I am not able to reproduce it locally, I can only get it from Crashlytics. As there is no code from my company in the stacktrace, I can only guess that it is happening in the login or logout flow when using google credentials.
This is more or less what our code is calling in the logout flow (the user may or may not have logged with Google, but we always call this.
fun checkAndLogout(context: Context)
val instance = GoogleApiAvailability.getInstance()
if (instance.isGooglePlayServicesAvailable(context) != ConnectionResult.SUCCESS) {
logout()
} else {
instance.checkApiAvailability(Identity.getSignInClient(context))
.addOnSuccessListener {
logout()
}
}
}
fun logout(){
CredentialManager.create(context)
.clearCredentialStateAsync(
ClearCredentialStateRequest(),
cancellationSignal = null,
executor = Runnable::run,
callback = object :
CredentialManagerCallback<Void?, ClearCredentialException> {
override fun onError(e: ClearCredentialException) {
Timber.e(e)
}
override fun onResult(result: Void?) = Unit
}
)
}
Description
The error does not help us understand what is happening, please provide a better explanation of what is happening and how to fix/avoid/handle it.
Devices/Android versions reproduced on: See attached image. All errors on Android 14