0

I have changed manually in pubspec.yaml file but it does not work.

Error:

pub get failed (1; Because my_app depends on geolocator >=9.0.1 which requires SDK version >=2.15.0 <3.0.0, version solving failed.)

halfer
  • 19,824
  • 17
  • 99
  • 186
riswan
  • 31
  • 3
  • Does this answer your question? [How to change Android minSdkVersion in flutter project](https://stackoverflow.com/questions/52060516/how-to-change-android-minsdkversion-in-flutter-project) – Khanh Tran Aug 10 '22 at 05:04
  • 1
    add pubspec.yaml file. – Yashraj Aug 10 '22 at 05:04

2 Answers2

0

Try in pubspec.yaml change with

environment:
  sdk: ">=2.15.0 <3.0.0"
Andrew Piterov
  • 340
  • 3
  • 12
0
  • then try running this in terminal brother,

if you want to downgrade to an specific flutter version

  • flutter downgrade (example: flutter downgrade v1.2.1)

if you want to upgrade to a specific flutter version

  • flutter upgrade (example: flutter upgrade v1.2.1)

then run flutter --version to check the current version.

Have fun and Keep Coding!