admin管理员组文章数量:1125354
I am making a Chat with Firebase (Firestore). It is for a school project.
Once the chat was done, I started to do other things. Now that I have finished everything, I was testing the APP and I get this error when entering the chat:
2025-01-09 00:50:34.528 15954-16072 GoogleApiManager es.jac.roncafit E Failed to get service from broker.
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3242)
at android.os.Parcel.createException(Parcel.java:3226)
at android.os.Parcel.readException(Parcel.java:3209)
at android.os.Parcel.readException(Parcel.java:3151)
at aoni.a(:com.google.android.gms@[email protected] (260800-705592033):36)
at aolp.z(:com.google.android.gms@[email protected] (260800-705592033):143)
at ansi.run(:com.google.android.gms@[email protected] (260800-705592033):54)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at butk.mw(:com.google.android.gms@[email protected] (260800-705592033):1)
at butk.dispatchMessage(:com.google.android.gms@[email protected] (260800-705592033):5)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.os.HandlerThread.run(HandlerThread.java:85)
Someone knows how to solv this issue?
Gradle (App)
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("kotlin-parcelize")
id("com.google.gms.google-services")
id("kotlin-kapt")
//id("com.google.firebase.crashlytics")
}
android {
namespace = "es.jac.roncafit"
compileSdk = 34
defaultConfig {
applicationId = "es.jac.roncafit"
minSdk = 23
targetSdk = 33
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures{
viewBinding = true
}
}
dependencies {
//ADDED BY JOEL ALACREU
implementation ("androidx.fragment:fragment-ktx:1.6.1")//Cambiar de fragment
implementation("com.squareup.retrofit2:retrofit:2.9.0")//Retrofit (Gestion API)
implementation("com.squareup.retrofit2:converter-gson:2.9.0")//Retrofit (Gestion API)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation( "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
implementation("me.relex:circleindicator:2.1.6")//Carrusel de imagenes
implementation("org.imaginativeworld.whynotimagecarousel:whynotimagecarousel:2.1.0")//Carrusel de imagenes
implementation("com.google.zxing:core:3.5.0")//Código QR
implementation("com.journeyapps:zxing-android-embedded:4.3.0")//Código QR
implementation(platform("com.google.firebase:firebase-bom:33.7.0"))//Firebase
implementation("com.google.firebase:firebase-firestore-ktx")//Firestore
implementation("androidx.activity:activity-ktx:1.8.2")//CallBackFlow
//implementation("com.google.android.gms:play-services-base:18.5.0")
//implementation("androidx.activity:activity-ktx")//CallBackFlow
//implementation("com.google.firebase:firebase-analytics-ktx:21.2.2")
//implementation("com.google.firebase:firebase-crashlytics-ktx:18.3.7")
//END
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
Gradle (Project)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.1.1" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("com.google.gms.google-services") version "4.4.2" apply false
//id("com.google.firebase.crashlytics") version "2.10.1"
}
Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=";
xmlns:tools=";>
<uses-permission android:name="android.permission.INTERNET" />
<application
android:usesCleartextTraffic="true"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.RoncaFit"
tools:targetApi="31">
<activity
android:name=".QRActivity"
android:exported="false" />
<activity
android:name=".LoginActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:exported="false"></activity>
</application>
</manifest>
If you need more information, tell me pls.
Thanks
I expect someone can solve my problem.
本文标签: Problem with firebase Unknown calling package name 39comgoogleandroidgms39Stack Overflow
版权声明:本文标题:Problem with firebase: Unknown calling package name 'com.google.android.gms' - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736659258a1946333.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论