Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter packages get 报错 #27

Closed
4 tasks done
k350023393 opened this issue Jul 23, 2019 · 2 comments
Closed
4 tasks done

flutter packages get 报错 #27

k350023393 opened this issue Jul 23, 2019 · 2 comments

Comments

@k350023393
Copy link

运行环境

  • 电脑系统:如:Windows 10
  • 设备型号:如:小米 8
  • 设备系统版本:如 Android 9.0
  • Flutter 版本:如 与源码一致

具体问题描述

程序down下来以后,执行flutter packages get 报错

问题截图

[flutter_deer] flutter packages get
Running "flutter pub get" in flutter_deer...
The current Flutter SDK version is 0.0.0-unknown.

Because oktoast 2.2.0 requires Flutter SDK version >=0.3.0 <2.0.0 and no versions of oktoast match >2.2.0 <3.0.0, oktoast ^2.2.0 is forbidden.

So, because flutter_deer depends on oktoast ^2.2.0, version solving failed.
pub get failed (1)
exit code 1

异常日志

@simplezhli
Copy link
Owner

@k350023393 看报错信息是你的Flutter版本过低,确保Flutter版本至少为1.5.4。

@k350023393
Copy link
Author

可以了,原因是我flutter用的是最新版的,切换为 Flutter version 1.5.4+hotfix.2 版本就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants