E/FirebaseInstanceId: не удалось получить токен: AUTHENTICATION_FAILED Firebase

Я пробовал много решений, но ни одно из них не работает. Я пытаюсь настроить firebase для своего проекта Android, но постоянно получаю сообщение об ошибке E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED. Примечание. Google-services.json установлен в каталог моего приложения.

Приложение:

dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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.google.firebase:firebase-core:16.0.1'
}

apply plugin: 'com.google.gms.google-services'

Мое приложение:

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    classpath 'com.google.gms:google-services:4.0.1'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

Вы уверены, что у вас установлена ​​последняя версия сервисов Google Play? Вы также пытались добавить implementation 'com.google.firebase:firebase-messaging:17.3.4'?

Alex Mamo 29.01.2019 09:23

@AlexMamo Вся эта ошибка исчезла, когда я запустил ее на своем физическом устройстве...

user 30.01.2019 00:03
Интеграция Angular - Firebase Analytics
Интеграция Angular - Firebase Analytics
Узнайте, как настроить Firebase Analytics и отслеживать поведение пользователей в вашем приложении Angular.
2
2
1 691
0

Другие вопросы по теме