Flutter app build is failing, need help to resolve dependencies

184

Change in pubspec.yaml dependencies:

scoped_model: ">=0.1.1 <0.3.0"

to

scoped_model: ^1.0.0
Share:
184
r4jiv007
Author by

r4jiv007

Senior Android Developer with 8 years of experience. https://github.com/r4jiv007?tab=repositories https://in.linkedin.com/pub/rajiv-singh/22/521/49b/

Updated on December 07, 2022

Comments

  • r4jiv007
    r4jiv007 over 1 year

    I am starting with flutter development and I thought that starting with opensource apps will be a good idea. I am trying to build this app : FlutterCinematic

    and I am getting the following error:-

    The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.
    
    Because movies_flutter depends on scoped_model >=0.1.1 <0.3.0 which requires SDK version <2.0.0, version solving failed.
    
    pub upgrade failed (1)
    

    I tried running flutter upgrade but it was not helpful. Any leads are appreciated.