E / FirebaseInstanceId: ошибка получения токена: AUTHENTICATION_FAILED в Android 10 - PullRequest
0 голосов
/ 26 мая 2020

Я получаю пустой токен всякий раз, когда открываю приложение для его отладки на эмуляторе. Я получаю E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED, когда приложение загружает главный экран в Nexus with API 29. Однако это нормально работает в другом эмуляторе Nexus with API 26. Я тоже ничего не менял в своем коде. Я включил свой файл build.gradle, но я не уверен, что еще мне нужно посмотреть, любая помощь будет признательна.

buildscript {
repositories {
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.huawei.agconnect'
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
maven { url 'https://maven.fabric.io/public' }
}


android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.xxxxx.xxxxxx"
    minSdkVersion 17
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
    vectorDrawables.useSupportLibrary = true
    useLibrary 'org.apache.http.legacy'
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
// Temporary fix until alpha10
packagingOptions {
    pickFirst 'META-INF/*'
}
repositories {
    maven { url 'https://jitpack.io' }
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

lintOptions {
    checkReleaseBuilds false
}

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-v4:28.0.0'
    }
}

}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
// Use the following line to include client library for Face API from Maven Central Repository
implementation 'com.microsoft.projectoxford:face:1.4.3'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha2'
// butter knife
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
//Encode/Decode a string
implementation 'com.scottyab:aescrypt:0.0.1'
//Font Awesome
implementation 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
//Amazon S3
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.6.7@aar') { transitive = true }
implementation 'com.amazonaws:aws-android-sdk-s3:2.6.+'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.6.+'
implementation 'com.amazonaws:aws-android-sdk-core:2.6.+'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.6.+'
//Picasso to load images
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'jp.wasabeef:picasso-transformations:2.2.1'
//MultiDex
implementation 'com.android.support:multidex:1.0.3'
//Swipe Reveal Layout
implementation 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'
//Graph Library
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
//FCM Push Notifications
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.github.lukedeighton:wheelview:0.4.2'
//Speedometer
implementation 'com.github.anastr:speedviewlib:1.3.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
//Volley
implementation 'com.android.volley:volley:1.1.0'
//Default Seek bar
implementation 'com.github.warkiz.widget:indicatorseekbar:2.1.2'
//Color slider
implementation 'com.larswerkman:HoloColorPicker:1.5'
//CalendarView
implementation 'com.github.prolificinteractive:material-calendarview:2.0.1'
//TODO: Important for calendar view
implementation 'com.jakewharton.threetenabp:threetenabp:1.2.0'
implementation 'com.huawei.hms:push:3.0.0.302'
}
apply plugin: 'com.google.gms.google-services'
...