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

Because <app> depends on google_sign_in >=5.4.4 which requires Flutter SDK version >=3.0.0, version solving failed. #121673

Closed
verscph opened this issue Mar 1, 2023 · 3 comments
Labels
r: invalid Issue is closed as not valid

Comments

@verscph
Copy link

verscph commented Mar 1, 2023

After migrating to google_sign_in 6.0.1, running the web app in debug and release mode (VS Code) is working fine.

But building or running the release version of the web app from the command line using
flutter run -d chrome

results in an error:

The current Flutter SDK version is 2.10.5.

Because <app> depends on google_sign_in >=5.4.4 which requires Flutter SDK version >=3.0.0, version solving failed.
Running "flutter pub get" in <app>...                                
pub get failed (1; Because <app> depends on google_sign_in >=5.4.4 which requires Flutter SDK version >=3.0.0, version solving failed.)

google_sign_in 6.0.1 release documentation on pub.dev shows the minimum Dart SDK version should be 2.14.

fluttter --version on my machine gives:

Flutter 2.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5464c5bac7 (11 months ago) • 2022-04-18 09:55:37 -0700
Engine • revision 57d3bac3dd
Tools • Dart 2.16.2 • DevTools 2.9.2

Is Flutter SDK version >=3.0.0 a requirement for google_sign_in 6.0.1?

@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label Mar 1, 2023
@danagbemava-nc
Copy link
Member

Hi @verscph, google_sign_in and the 1st party plugins all have their minimum flutter versions set to 3.0.0 now so you'll need to upgrade to at least flutter 3.0.0 to be able to use them. For google_sign_in this was actually changed in v5.5.4. See the changelog https://pub.dev/packages/google_sign_in/changelog#544

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 1, 2023
@stuartmorgan
Copy link
Contributor

pub.dev shows the minimum Dart SDK version should be 2.14.

Minimum Dart SDK and minimum Flutter SDK are separate things; a package can require recent Flutter APIs but not use new Dart APIs.

Closing as the error message is correct, and reflects the package's pubspec.yaml.

@stuartmorgan stuartmorgan closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2023
@stuartmorgan stuartmorgan removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 1, 2023
@danagbemava-nc danagbemava-nc added r: invalid Issue is closed as not valid and removed in triage Presently being triaged by the triage team labels Mar 1, 2023
@github-actions
Copy link

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 Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

3 participants