1

我正在做一个应用程序,我遇到了以下问题

/Users/pedro/Desktop/Development/flutter/bin/flutter --no-color packages get Running "flutter packages get" in wemystic... 当前的 Dart SDK 版本是 2.1.0-dev.0.0.flutter-be6309690f。因为flutter_cache_manager >=0.1.0-rc.1 依赖于uuid >=0.0.7 <1.0.3 需要SDK 版本<2.0.0,所以flutter_cache_manager >=0.1.0-rc.1 是被禁止的。所以,由于wemystic依赖flutter_cache_manager 0.1.0-rc.1,版本求解失败。pub get failed (1) 进程以退出代码 1 结束

我在 pubspec.yaml 中的依赖项是:

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
  firebase_auth: any
  google_sign_in: any
  flutter_html_view: any

谢谢

4

1 回答 1

3

flutter_cache_manager已过时,需要更新

添加这个pubspec.yaml应该修复它作为解决方法,直到包更新

dependency_overrides:
  uuid: ^1.0.3
于 2018-08-29T11:58:06.187 回答