Home > Blockchain >  Flutter pub get version solving failed
Flutter pub get version solving failed

Time:10-21

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"

CodePudding user response:

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

CodePudding user response:

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"
  • Related