【发布时间】:2018-09-17 19:25:07
【问题描述】:
我突然发现这个错误,它以前工作得很好。这是我所拥有的:
在 app.gradle 依赖项中:
implementation "com.google.firebase:firebase-core:16.0.1"
implementation "com.google.firebase:firebase-messaging:17.3.1"
在 app.gradle 文件末尾:
apply plugin: 'com.google.gms.google-services'
在项目 gradle 文件中:
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'io.fabric.tools:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.1.0'
}
google-services.json 位于我项目的每个文件夹中,只是为了查看它是否正常工作。
但仍然出现上述错误。
【问题讨论】:
标签: android firebase firebase-cloud-messaging google-play-services