Возникла проблема при настройке проекта ': shared_preferences_ linux' - PullRequest
1 голос
/ 03 августа 2020

Когда я добавляю зависимость shared_preferences: ^ 0.5.8

  • Где: Строка скрипта 'D: \ flutter \ packages \ flutter_tools \ gradle \ flutter.gradle': 362

  • Что пошло не так: возникла проблема при настройке проекта ': shared_preferences_ linux'.

Не удалось найти реализацию метода () для arguments [project ': path_provider_ linux'] для объекта типа org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

pubspe c .ymal

environment:
  sdk: ">=2.1.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
  shared_preferences: ^0.5.8
dev_dependencies:
  flutter_test:
    sdk: flutter

Ответы [ 2 ]

0 голосов
/ 05 августа 2020

проблема решена, причина в том, что версия SDK слишком низкая, v1,12.13 + обновление h9 до 1.17.5

0 голосов
/ 03 августа 2020

Вы должны показать файл pubspe c .yaml

...