这行是否重要:apply plugin: 'com.google.gms.google-services' 应该在底部?
最佳答案
不再需要将它放在 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/