android - 行 : "apply plugin: ' com. google.gms.google-services 的“应该在底部是否重要?

标签 android firebase

这行是否重要:apply plugin: 'com.google.gms.google-services' 应该在底部?

它来自 firebase 页面,其中包含如何将 firebase 添加到您的 android 应用程序的说明 It is from firebase page with instruction how to add firebase to your android app

最佳答案

不再需要将它放在 build.gradle 文件的末尾。他们从 newest docs 中删除了“到文件底部”的注释。现在在顶部应用插件:

In your module (app-level) Gradle file (usually app/build.gradle), apply the Google Services Gradle plugin:

apply plugin: 'com.android.application'
// Add the following line:
apply plugin: 'com.google.gms.google-services'  // Google Services plugin

android {
  // ...
}

关于android - 行 : "apply plugin: ' com. google.gms.google-services 的“应该在底部是否重要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54347518/

相关文章:

android - 启动 logcat 时出现意外错误。尝试重新选择设备。] EO

android - Android App中通过WebView查看RTSP视频流

android calculator display - 截断不必要的零并添加分隔符以显示输入和答案

firebase - Ionic 框架的 NullInjectorError : No provider for Firebase!

android - 为什么我的 PagingSource 没有给我任何数据?

android - 如何检查设备是否*快*足够

java - 如何从 Firebase 下载各种类型的文件(图像、视频、文本)并显示它们

javascript - 取消订阅 FCM Web 中的主题

Swift - 使用 URL 下载的低分辨率 firebase 照片

android - 反序列化包含数组的 Firestore 文档的推荐方法是什么?