【发布时间】:2020-09-07 10:16:16
【问题描述】:
使用最新版本的 Firebase for Flutter 并尝试运行该应用程序。但不幸的是,有很多错误对我来说毫无意义。
https://i.stack.imgur.com/ggbZi.png、https://gofile.io/d/b6RmlQ、https://gofile.io/d/FZBg2O、https://gofile.io/d/yCRUcy
【问题讨论】:
使用最新版本的 Firebase for Flutter 并尝试运行该应用程序。但不幸的是,有很多错误对我来说毫无意义。
https://i.stack.imgur.com/ggbZi.png、https://gofile.io/d/b6RmlQ、https://gofile.io/d/FZBg2O、https://gofile.io/d/yCRUcy
【问题讨论】:
Flutter Firebase 实现在底层使用原生代码。错误表明未找到本机类。
这可能是因为缺少依赖项。
尝试flutter clean 然后flutter pub get 并检查它是否有效。
【讨论】:
build.gradle和Application.javafirebase.flutter.dev/docs/installation/android中添加一些代码
pubspec.yml、build.gradle 和Application.java 代码?