我在哪里报告googles(firebase)文档中的错误? [Firebase设置指南]

问题描述 投票:0回答:1

TL;DR:

文档使用apply plugin: 'com.google.gms:google-services':instead的.,导致崩溃。


Details

我在Firebase setup guide中发现了一个小但耗时的错误,并希望为将来的开发人员修复它。

Step 3task 2.b文本:

在您的模块(app-level)Gradle文件(通常是app / build.gradle)中,在文件底部添加一行。

您有以下代码:

apply plugin: 'com.android.application'

android {
  // ...
}

// Add the following line to the bottom of the file:
apply plugin: 'com.google.gms:google-services'  // Google Play services Gradle plugin

最后一行应该是apply plugin: 'com.google.gms.google-services'。 但是,它被输入为apply plugin: 'com.google.gms:google-services', 在com.google.gsmgoogle-services之间用冒号代替点。

这将导致以下错误:

Initializing gradle...   
Resolving dependencies...  
* Error running Gradle: 
ProcessException: Process "/Users/me/Repos/infodisplay_flutter/android/gradlew"
exited abnormally:

FAILURE: Build failed with an exception.

* Where: Build file '/Users/me/Repos/infodisplay_flutter/android/app/build.gradle' 
line: 74

* What went wrong: A problem occurred evaluating project ':app'.
> Plugin with id 'com.google.gms:google-services' not found.

* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s 
Command: /Users/me/Repos/infodisplay_flutter/android/gradlew app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.

错误消息指向右侧,但从其他SO帖子判断,其他开发人员很难弄清楚插件不存在的原因。

如果我错了请纠正我,否则请尝试让这篇文章找到合适的人选!

android firebase google-cloud-firestore gradle-plugin
1个回答
1
投票

从我之前的评论中可以将此问题标记为已回答/已关闭 -

如果您已登录,则会在蓝色导航栏右上方的每个文档页面上显示“发送反馈”按钮,位于您的帐户个人资料照片下方。

Jon的建议也是有效的,但我不确定文档问题的优先级是否低于开发错误。

© www.soinside.com 2019 - 2024. All rights reserved.