E/FirebaseInstanceId:令牌检索失败:AUTHENTICATION_FAILED-发生了什么变化? [英] E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED - what changed?
问题描述
我不确定这里发生了什么,我拉出了最近更新的存储库,每次打开应用程序以在模拟器上对其进行调试时,都会在应用程序加载主屏幕时得到E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
.但是,这在今天之前没有发生过,所以我不知道会发生什么变化?我从Firebase控制台删除了该应用程序,然后重新添加了它(通过Firebase Assistant),但这也不能解决该问题吗?我已经包含了build.grade文件,但是我不确定我还需要看什么,我们将为您提供任何帮助.
I'm not sure what's going on here, I pulled my recently updated repo and every time I open the app to debug it on an emulator I get E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
as the app loads up the main screen. However this hadn't happened before today so I don't know what could've changed? I deleted the app from the Firebase console and re-added it (through Firebase Assistant), but that didn't fix it either? I've included my build.grade file but I'm not sure what else I need to be looking at, any assistance would be appreciated.
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.android.projectrc"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation 'com.wdullaer:materialdatetimepicker:3.4.0'
implementation "org.jetbrains.anko:anko:$anko_version"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.bumptech.glide:glide:4.2.0'
implementation 'com.google.firebase:firebase-auth:11.0.4'
implementation 'com.google.firebase:firebase-database:11.0.4'
implementation 'com.google.firebase:firebase-storage:11.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
apply plugin: 'com.google.gms.google-services'
推荐答案
在我的案例中,问题是模拟器未连接到Internet,似乎未像ios模拟器那样隐式连接.
The problem in my case was that the emulator was not connected to internet, seems that is not implicitly connected like the ios simulator.
这篇关于E/FirebaseInstanceId:令牌检索失败:AUTHENTICATION_FAILED-发生了什么变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!