Android Credential Manager Google Sign-In fails with DEVELOPER_ERROR and "Unknown calling package name 'com.google.android.gms'"


I have been using Credential Manager for several months, but recently in March the sign-in in my application stopped working. The app freezes and it becomes impossible to complete the sign-in process.

Environment:

  • Android 16

  • Samsung Galaxy S25 Edge

  • Kotlin

  • Jetpack Compose

  • Firebase Authentication

  • Credential Manager API

  • Google Play Services 26.18.33

Package name:

com.nordisapps.nordisradiojournal

I start sign-in using:

val googleIdOption = GetGoogleIdOption.Builder()
    .setFilterByAuthorizedAccounts(false)
    .setServerClientId(BuildConfig.GOOGLE_CLIENT_ID)
    .setNonce(generateSecureRandomNonce())
    .build()

The request starts correctly, but then Google Play Services throws:

java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'

and:

ConnectionResult{statusCode=DEVELOPER_ERROR, resolution=null, message=null}

Then Credential Manager returns:

androidx.credentials.exceptions.NoCredentialException: No credentials available

Relevant logcat:

GoogleApiManager  Failed to get service from broker.
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'

Things I already checked:

  • SHA-1 added to Firebase

  • SHA-256 added to Firebase

  • Downloaded latest google-services.json

  • Google Sign-In provider enabled in Firebase

  • Using WEB client ID (not Android client ID)

  • Added:

    
    <queries>
        <package android:name="com.google.android.gms" />
    </queries>
    
  • implementation("com.google.android.gms:play-services-base")
    
  • Tried deleting Firebase Authentication user

  • Tried .setFilterByAuthorizedAccounts(false)

The issue still persists.

Is this a known Android 16 / Credential Manager / Google Play Services issue, or am I missing some required configuration?

0
May 27 at 6:31 PM
User AvatarRostyslav
#android#firebase#kotlin#google-signin#android-credential-manager

No answer found for this question yet.