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

Upgrade problem of Dart to use flutter gallery. #19382

Closed
baeharam opened this issue Jul 15, 2018 · 9 comments
Closed

Upgrade problem of Dart to use flutter gallery. #19382

baeharam opened this issue Jul 15, 2018 · 9 comments

Comments

@baeharam
Copy link

When I tried to use flutter gallery, I got this error message.

Because flutter_gallery depends on shelf >=0.7.3+2 which requires SDK version >=2.0.0-dev.61.0 <2.0.0, version solving failed.
pub upgrade failed (1)

So I wanted to upgrade dart SDK to dev.61.0, but how can I upgrade? I installed choco and upgarded dart but it didn't work not at all. My flutter doctor said like below.

[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.165], locale ko-KR)
• Flutter version 0.5.1 at C:\flutter
• Framework revision c7ea3ca (7 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca
• Dart version 2.0.0-dev.58.0.flutter-f981f09760

Yes, my Dart version is 2.00-dev.58.0, but I need 2.00-dev.61.0 to see WHAT FLUTTER GALLERY IS.
How can I fix it?

@Leo486597
Copy link

Leo486597 commented Jul 16, 2018

The same issue I just faced when I was in Master branch by default, checkout the beta branch will be fine.

git checkout -t origin/beta
flutter packages get

@zoechi
Copy link
Contributor

zoechi commented Jul 16, 2018

You can try

flutter channel dev
flutter doctor

I'm not sure what channel flutter_gallery is tested with.

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 16, 2018
@baeharam
Copy link
Author

@zoechi @leo-chaoliu Sorry for late answer, I had an appendectomy. It was solved by @leo-chaoliu :)

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 19, 2018
@zoechi
Copy link
Contributor

zoechi commented Jul 19, 2018

@baeharam thanks for the update. Then let's close this issue.

@zoechi zoechi closed this as completed Jul 19, 2018
@ibanjac
Copy link

ibanjac commented Aug 9, 2018

Hello, i have the same issue
[flutter_gallery] flutter packages get
Running "flutter packages get" in flutter_gallery...
The current Dart SDK version is 2.0.0-dev.58.0.flutter-f981f09760.

Because flutter_gallery depends on shelf >=0.7.3+2 which requires SDK version >=2.0.0-dev.61.0 <3.0.0, version solving failed.
pub get failed (1)
exit code 1

Flutter doctor
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 6.3.9600], locale en-US)
• Flutter version 0.5.1 at C:\Project\flutter
• Framework revision c7ea3ca (2 months ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
I have the latest flutter and dart sdk and plugins
I have installed the latest dart release
Dart VM version: 2.0.0-dev.69.5 (Tue Jul 31 15:05:14 2018 +0200) on "windows_x64"
I am also in beta channel (i have tried other channels, still fails)

@zoechi
Copy link
Contributor

zoechi commented Aug 15, 2018

Dart version 2.0.0-dev.58.0.flutter-f981f09760

@ibanjac sounds like you need to update to a newer Flutter version that ships with requires SDK version >=2.0.0-dev.61.0

@ibanjac
Copy link

ibanjac commented Aug 15, 2018

I have the latest flutter sdk, latest Dart VM version: 2.0.0-dev.69.5, latest vs code plugins

@zoechi
Copy link
Contributor

zoechi commented Aug 16, 2018

@ibanjac The installed Dart VM version doesn't matter, only the Dart VM version shipped with Flutter.
Try

flutter channel dev
flutter upgrade

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants