【发布时间】:2020-02-20 12:54:16
【问题描述】:
我已经开始学习颤振了。并试图将 firebase 实时数据库集成到我的颤振项目中。但是,一旦我将依赖项添加到我的 android 部分的 build.graddle 文件中,我就开始收到此错误。
Launching lib\main.dart on A37f in debug mode...
* Error running Gradle:
ProcessException: Process "C:\Users\Username
\Desktop\firebase_listview\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Username\Desktop\firebase_listview\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 3s
Command: C:\Users\Username\Desktop\firebase_listview\android\gradlew.bat app:properties
我添加的时候就开始了
apply plugin: 'com.google.gms.google-services'
到app级build.graddle的底部
还有这个
classpath 'com.google.gms:google-services:4.3.2'
到我的项目级 gradle 文件。
我还在 pubspec.yaml 文件中为依赖项下的颤振添加了 firebase_databasse 依赖项
【问题讨论】:
标签: firebase-realtime-database flutter flutter-dependencies