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/