Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter pub get version solving failed

I'm getting this issue with flutter pub get, tried to update the dart sdk, restart the pc to add the Dart sdk location back to the environment variables, delete the .git folder.

Running "flutter pub get" in calculator...
The current Dart SDK version is 2.13.4.

Because calculator depends on webview_flutter >=2.0.14 which requires SDK version >=2.14.0 <3.0.0, version solving failed. pub get failed (1; Because calculator depends on webview_flutter >=2.0.14 which requires SDK version >=2.14.0 <3.0.0, version solving failed.) exit code 1

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [version 10.0.19043.1288], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.0)
[√] VS Code (version 1.61.2)
[√] Connected device (3 available)

Dart Version:

Dart SDK version: 2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "windows_x64"
like image 616
Kaya Ryuuna Avatar asked Oct 20 '25 04:10

Kaya Ryuuna


2 Answers

Change version of webview_flutter in pubspec.yaml to webview_flutter: any

like image 82
Kaushik Chandru Avatar answered Oct 22 '25 18:10

Kaushik Chandru


When you say you tried updating the Dart SDK, did you update your pubspec.yaml as well?

environment:
  sdk: ">=2.14.0 <3.0.0"
like image 31
Keith DC Avatar answered Oct 22 '25 17:10

Keith DC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!