firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

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

Open CiprianGabor opened this issue 1 year ago • 0 comments
trafficstars

Any idea how to solve this error using Firebase Auth: auth.createUserWithEmailAndPassword(user.email, password)

Failed to get service from broker. 
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3069)
at android.os.Parcel.createException(Parcel.java:3053)
at android.os.Parcel.readException(Parcel.java:3036)
at android.os.Parcel.readException(Parcel.java:2978)
at angb.a(:com.google.android.gms@[email protected] (190400-693941914):36)
at anei.z(:com.google.android.gms@[email protected] (190400-693941914):143)
at amln.run(:com.google.android.gms@[email protected] (190400-693941914):54)

The versions that I use for my KMM app:

dependencies {
        classpath("com.google.gms:google-services:4.4.2")
    }

implementation("dev.gitlive:firebase-firestore:1.10.4")
implementation("dev.gitlive:firebase-common:1.10.4")
implementation("dev.gitlive:firebase-auth:1.10.4")

The user is created but my app crashes because of the error.

Have a great day!

CiprianGabor avatar Nov 14 '24 23:11 CiprianGabor