firebase - 使用物理设备运行简单的Firebase Flutter应用程序并获得Gradle错误

标签 firebase gradle flutter dart stack-trace

Launching lib\main.dart on Redmi 5 Plus in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "C:\user\proj\android\gradlew.bat" exited 
abnormally:
Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be 
reused, use --status for details

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\user\proj\android\app\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':app'.
ASCII
* 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 3m 22s
Command: C:\user\proj\android\gradlew.bat app:properties

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

但是,如果我在 proj / app / build.gradle 中评论并应用插件:'com.google.gms.google-services',它将很好地工作,但是firebase无法正常工作。

最佳答案

我希望您将所有依赖关系都写在文件中
喜欢
CHECK My Github file

关于firebase - 使用物理设备运行简单的Firebase Flutter应用程序并获得Gradle错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58047426/

相关文章:

json - 无法在 ListView 中加载变量

node.js - 如何在 Firebase 上运行 Node.js 脚本?

android - 如果附近没有发现用户,GeoFire 会在源位置放置另一个标记

java - 使用 protobuf-gradle-plugin 生成 protobuf 文件描述符

java - 我可以在机器上同时安装Maven和Gradle吗

svg - 我正在尝试使用 flutter svg,但加载黑色 svg

flutter - 在 flutter_local_notifications 中添加 mp3 声音

javascript - Firestore 无法读取\n jspdf 字符串

ios - Xcode 9.3 和 Firebase Crashlytics 不工作

android - 如何在 Flutter 插件中添加 OpenCV