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

pub get failed - no lower bound SDK constraint #153

Closed
coastalgit opened this issue Mar 5, 2021 · 3 comments · Fixed by #152
Closed

pub get failed - no lower bound SDK constraint #153

coastalgit opened this issue Mar 5, 2021 · 3 comments · Fixed by #152

Comments

@coastalgit
Copy link

After upgrade to Flutter 2 stable channel, I was unable to build a pro-icon package with version 8.11.0 from master, getting error when running flutter packages get:

pubspec.yaml has no lower-bound SDK constraint.
You should edit pubspec.yaml to contain an SDK constraint:

environment:
  sdk: '>=2.10.0 <3.0.0'
@droidzone
Copy link

droidzone commented Mar 8, 2021

I found that the error is because of the pubspec.yaml file inside example folder. Change that to:


name: font_awesome_flutter_example
description: The Font Awesome Flutter Gallery

environment:
  sdk: ">=2.7.0 <3.0.0"
  
dependencies:
  flutter:
    sdk: flutter
  font_awesome_flutter:
    path: ../

flutter:
  uses-material-design: true

@coastalgit
Copy link
Author

Thanks @droidzone - that resolved pub get.

@michaelspiss michaelspiss linked a pull request Mar 10, 2021 that will close this issue
@jakezg0
Copy link

jakezg0 commented Aug 26, 2021

name: login
description: A new Flutter project.

environment:
sdk: ">=2.7.0 <3.0.0"

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

dependencies:
flutter:
sdk: flutter

cupertino_icons: ^0.1.0

dev_dependencies:
flutter_test:
sdk: flutter

flutter:
uses-material-design: true
assets:
- assets/logo.png
- assets/alucard.jpg
fonts:
- family: Nunito
fonts:
- asset: assets/Nunito.ttf

Guys need help, tried your solution, still not working. Can you take a look at my pubspec.yaml?

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

Successfully merging a pull request may close this issue.

3 participants