На самом деле службы работают нормально, как аутентификация (с помощью Google Play и Firebase), так и загрузка/скачивание на GoogleDrive, поэтому в настоящее время я все еще выпускаю приложение с этим сообщением об ошибке, но это не может быть слишком хорошо...
Кто-нибудь знает, чего не хватает?
Вот ключевые файлы:
Код: Выделить всё
// FILENAME: build.gradle.kts
plugins {
id("com.android.application") version "8.6.0"
id("org.jetbrains.kotlin.android") version "1.9.25"
id("com.google.gms.google-services") version "4.4.2"
}
android {
...
dependencies {
...
implementation(platform("androidx.compose:compose-bom:2024.09.03"))
// Firebase dependencies
implementation(platform("com.google.firebase:firebase-bom:33.4.0"))
implementation("com.google.firebase:firebase-auth")
implementation("com.google.firebase:firebase-firestore")
implementation("io.grpc:grpc-okhttp:1.68.0")
implementation("io.grpc:grpc-protobuf-lite:1.68.0")
implementation("io.grpc:grpc-stub:1.68.0")
implementation("com.google.android.gms:play-services-ads:23.4.0")
// Google API Client and Drive API
implementation("com.google.api-client:google-api-client-android:2.7.0")
implementation("com.google.api-client:google-api-client-gson:2.7.0")
implementation("com.google.apis:google-api-services-drive:v3-rev20240903-2.0.0")
implementation("com.google.api-client:google-api-client:2.7.0")
implementation("com.google.http-client:google-http-client-jackson2:1.45.0")
implementation("com.google.auth:google-auth-library-oauth2-http:1.28.0")
implementation("com.google.android.gms:play-services-auth:21.2.0")
}
Код: Выделить всё
...
...
Код: Выделить всё
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=[local sdk path]
Есть идеи? Заранее большое спасибо!
Я попробовал реализовать все советы, которые смог найти в Интернете.
Сообщение об ошибке следующее:
Код: Выделить всё
Failed to get service from broker. (Ask Gemini)
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at amok.a(:com.google.android.gms@243633032@24.36.33 (190800-675378931):36)
at ammr.z(:com.google.android.gms@243633032@24.36.33 (190800-675378931):143)
at altt.run(:com.google.android.gms@243633032@24.36.33 (190800-675378931):54)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at bqoh.ml(:com.google.android.gms@243633032@24.36.33 (190800-675378931):1)
at bqoh.dispatchMessage(:com.google.android.gms@243633032@24.36.33 (190800-675378931):5)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.os.HandlerThread.run(HandlerThread.java:67)
Подробнее здесь: https://stackoverflow.com/questions/790 ... ndroid-gms
Мобильная версия