Код: Выделить всё
suspend fun createNewUser(user: UserInfo, password: String) {
val userCredential = 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@244337029@24.43.37 (190400-693941914):36)
at anei.z(:com.google.android.gms@244337029@24.43.37 (190400-693941914):143)
at amln.run(:com.google.android.gms@244337029@24.43.37 (190400-693941914):54)
проект Gradle:
Код: Выделить всё
dependencies {
classpath("com.google.gms:google-services:4.4.2")
}
plugins {
id("com.android.application").version("8.1.0").apply(false)
id("com.android.library").version("8.1.0").apply(false)
kotlin("android").version("1.9.0").apply(false)
kotlin("multiplatform").version("1.7.20").apply(false)
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.0"
}
Код: Выделить всё
implementation("dev.gitlive:firebase-firestore:1.10.4")
implementation("dev.gitlive:firebase-common:1.10.4")
implementation("dev.gitlive:firebase-auth:1.10.4")
Хорошего дня!
Подробнее здесь: https://stackoverflow.com/questions/791 ... com-google