zubairehman / flutter_boilerplate_project

A boilerplate project created in flutter using MobX and Provider.
http://zubairehman.surge.sh/
MIT License
2.26k stars 908 forks source link

Dependency error #81

Closed elmurphy closed 3 years ago

elmurphy commented 3 years ago

I try to download boilerplate and run it but I got that error on run. ` [flutter_boilerplate] flutter pub get Running "flutter pub get" in flutter_boilerplate...
Because boilerplate depends on flutter_localizations any from sdk which depends on intl 0.17.0-nullsafety.2, intl 0.17.0-nullsafety.2 is required.

So, because boilerplate depends on intl ^0.16.1, version solving failed. pub get failed (1; So, because boilerplate depends on intl ^0.16.1, version solving failed.) exit code 1 `

thegumza commented 3 years ago

I have same error because I use flutter in beta channel. Check your channel by flutter channel if you in beta try to change to stable channel by flutter channel stable flutter upgrade Now I try to use stable chanel it's work.

elmurphy commented 3 years ago

You are right, that's fix my problem. Noted here for others.

allanlaal commented 3 years ago

issue still persists in Flutter 2.0 stable with flutter-boilerplate-project master tip:

$ flutter pub get Because boilerplate depends on flutter_localizations any from sdk which depends on intl 0.17.0, intl 0.17.0 is required. So, because boilerplate depends on intl ^0.16.1, version solving failed.

uvios commented 3 years ago

@allanlaal I am facing same issue as well

allanlaal commented 3 years ago

@uvios my current dirty fix is to append this to pubspec.yaml:

dependency_overrides: intl: ^0.16.1 path: ^1.7.0

uvios commented 3 years ago

please remove f_logs dependency and change intl: ^0.16.1 ==> intl: ^0.17.0. this worked for me

allanlaal commented 3 years ago

please remove f_logs dependency and change intl: ^0.16.1 ==> intl: ^0.17.0. this worked for me

doing only that still produces an error: pub get failed (1; Because boilerplate depends on intl ^1.7.0 which doesn't match any versions, version solving failed.)