firebase_core в yaml не найден - PullRequest
0 голосов
/ 30 мая 2018

Создан новый проект флаттера, без изменений, кроме Добавлено в yaml:

dependencies:
  flutter:
    sdk: flutter
  firebase_core: "0.2.3"

После «получения пакетов» проект перестройки выдает ошибку в 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**

Flutter doctor

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)

Ответы [ 2 ]

0 голосов
/ 20 сентября 2018

java: пакет io.flutter.plugins.firebase.core не существует Это ошибка пути к классу Java.Просто добавьте в classpath

0 голосов
/ 30 мая 2018

Вам не хватает символа ^ в объявлении версии.Правильный путь будет,

firebase_core: "^0.2.3"

...