【问题标题】:After firestore update in Flutter the project doesnt compile在 Flutter 中更新 firestore 后,项目无法编译
【发布时间】:2020-12-10 15:03:49
【问题描述】:

编译时会出现此错误。

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.14.0+1\android\build.gradle' line: 54

* What went wrong:
A problem occurred evaluating project ':cloud_firestore'.
> Could not find method platform() for arguments [com.google.firebase:firebase-bom:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* 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.

我的 build.gradle 有什么问题?

【问题讨论】:

标签: flutter gradle google-cloud-firestore


【解决方案1】:

解决方案是像@Ronak 所说的那样更新 gradle,但是更新到 3.3.1 而不是 5.0。

【讨论】:

    猜你喜欢
    • 2019-07-11
    • 2019-06-09
    • 2021-01-30
    • 1970-01-01
    • 1970-01-01
    • 2019-10-01
    • 2022-11-19
    • 2017-12-05
    • 2020-03-19
    相关资源
    最近更新 更多