Для пакета требуется Flutter SDK Version> = 0.1.4 <2.0.0 - PullRequest
0 голосов
/ 03 декабря 2018

Я пытаюсь добавить пакет path_provider в мои зависимости, но я всегда получаю эту ошибку:

The current Flutter SDK version is 0.0.0-unknown.


Because lista_tarefas depends on path_provider >=0.4.0 which requires Flutter SDK version >=0.1.4 <2.0.0, version solving failed.

pub upgrade failed (1)

Я уже пробовал:

  • пакеты получают
  • обновление пакетов
  • обновление флаттера
  • очистка флаттера
  • Запись другой версии в переменной среды в pugspec.yaml
  • Удаление переменной среды в pugspec.yaml
  • Использовать старую версию path_provider
  • Аннулирование кэшей в Android Studio

Мой текущий файл pubspec.yaml:

...

version: 1.0.0+1

environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"



dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  path_provider: "^0.4.1"

dev_dependencies:
  flutter_test:
    sdk: flutter


# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

Path_provider doc: https://pub.dartlang.org/packages/path_provider

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...