Dart 颤振包失败
当我试图添加Dart 颤振包失败,dart,firebase-authentication,flutter,Dart,Firebase Authentication,Flutter,当我试图添加firebase\u auth,并运行flatter-packages-get时,我发现以下错误 Running "flutter packages get" in demo... demo firebase_auth has no versions that match >=0.2.3 <0.3.0 derived from: - demo depends on version ^0.2.3 这个对我来说很好。 我刚刚更改了flatter依赖项。 如果这对您不起作用,
firebase\u auth
,并运行flatter-packages-get
时,我发现以下错误
Running "flutter packages get" in demo...
demo firebase_auth has no versions that match >=0.2.3 <0.3.0 derived from:
- demo depends on version ^0.2.3
这个对我来说很好。
我刚刚更改了
flatter
依赖项。如果这对您不起作用,那么您的颤振设置可能存在问题
name: full3
description: A new Flutter project.
dependencies:
flutter:
sdk: flutter
google_sign_in: "^0.3.1"
firebase_auth: "^0.2.3"
# 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:
fonts:
- family: Encode Sans
fonts:
- asset: assets/fonts/EncodeSansExpanded-Light.ttf
assets:
- assets/img/facebook.png
- assets/img/google.png
- assets/img/logo.png
- assets/img/signup.png
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the Icons class.
uses-material-design: true
众所周知,
pub-get
或flatter-packages-get
返回的错误消息没有多大帮助。有改进的计划,但这需要更广泛的尝试,需要一些时间。这只是意味着,您的某些依赖项约束会阻止您找到一组相互兼容的依赖项版本。您可以尝试启用详细输出以获得mote insight,或者删除大多数依赖项,直到flatter包获得成功,然后逐个添加它们,直到失败,以查看是哪一个导致冲突。你也可以试试,我不知道它是否支持颤振,但在其他情况下,它通常对这种情况很有帮助。我也在新项目上尝试过,没有希望发布你的pubspec。yamlI已经更新了帖子,请在可以的时候检查。我认为没有特殊的重新安装过程。您可以删除包含它的目录,然后重新安装
name: full3
description: A new Flutter project.
dependencies:
flutter:
sdk: flutter
google_sign_in: "^0.3.1"
firebase_auth: "^0.2.3"
# 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:
fonts:
- family: Encode Sans
fonts:
- asset: assets/fonts/EncodeSansExpanded-Light.ttf
assets:
- assets/img/facebook.png
- assets/img/google.png
- assets/img/logo.png
- assets/img/signup.png
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the Icons class.
uses-material-design: true