创建了全新的扑动项目,除了以外没有变化 添加到yaml:
dependencies:
flutter:
sdk: flutter
firebase_core: "0.2.3"
&#34>&#34>包裹得到"重建项目在GeneratedPluginRegistrant
中出错**Error:(4, 40) java: package io.flutter.plugins.firebase.core does not exist
Error:(14, 5) java: cannot find symbol
symbol: variable FirebaseCorePlugin
location: class io.flutter.plugins.GeneratedPluginRegistrant
Information:javac 1.8.0_131 was used to compile java sources
Information:5/30/2018 7:18 AM - Compilation completed with 2 errors and 0 warnings in 2 s 101 ms**
颤抖的医生
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.4.4, on Microsoft Windows [Version 10.0.17134.48], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] IntelliJ IDEA Community Edition (version 2018.1)
[!] VS Code, 64-bit edition (version 1.23.1)
[√] Connected devices (1 available)
答案 0 :(得分:0)
您在版本声明中缺少^
符号。正确的方法是,
<强> firebase_core: "^0.2.3"
强>
答案 1 :(得分:0)
java:包io.flutter.plugins.firebase.core不存在 这是一个Java类路径错误。只需添加到类路径