Журнал ошибок:
Код: Выделить всё
E/AndroidRuntime(1062): FATAL EXCEPTION: Firebase Blocking Thread #1
E/AndroidRuntime(1062): Process: com.xawalla.app, PID: 1062
E/AndroidRuntime(1062): java.lang.NoSuchMethodError: No static method checkNotGoogleApiHandlerThread()V in class Lcom/google/android/gms/common/internal/Preconditions; or its super classes (declaration of 'com.google.android.gms.common.internal.Preconditions' appears in /data/app/~~bqQsV4kN6IF_8w66umxitQ==/com.xawalla.app-Qw5hjYN7VtKv3uCS0zR9OQ==/base.apk)
E/AndroidRuntime(1062): at com.google.android.gms.tasks.Tasks.await(com.google.android.gms:play-services-tasks@@18.1.0:2)
E/AndroidRuntime(1062): at com.google.firebase.installations.remote.FirebaseInstallationServiceClient.openHttpURLConnection(FirebaseInstallationServiceClient.java:487)
android/app/build.gradle:
Код: Выделить всё
gradle
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
id 'com.google.gms.google-services'
}
dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
implementation platform('com.google.firebase:firebase-bom:32.7.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-auth'
}
Код: Выделить всё
gradle
buildscript {
ext.kotlin_version = '1.8.22'
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.4.0'
}
}
В частности, в потоке блокировки Firebase #1 и потоке блокировки Firebase #0.
Отсутствующий метод принадлежит play-services-tasks@@18.1.0
Я уже пытался обновить Kotlin до 1.8.22; используйте спецификацию Firebase 32.7.0; принудительная версия Play Services, полная очистка (очистка flutter, очистка gradle).
Среда:
- Flutter 3.19.+
- Android minSdkVersion 23
- Эмулятор Android x86_64
- Службы Google 4.4.0
Подробнее здесь: https://stackoverflow.com/questions/798 ... ndlerthrea
Мобильная версия