Dependency Error
When you run the application and you see error like this
Running "flutter pub upgrade" in prokit-flutter...
The current Flutter SDK version is 1.17.5.
Because prokit_flutter depends on flutter_svg >=0.18.0 which requires Flutter SDK version >=1.18.0-6.0.pre <2.0.0, version solving failed. pub upgrade failed (1; Because prokit_flutter depends on flutter_svg >=0.18.0 which requires Flutter SDK version >=1.18.0-6.0.pre <2.0.0, version solving failed.) Process finished with exit code 1
Error Possibilities:
Generally, this error occurs when
- one of your third party package version is not supported.
- your Flutter SDK version not matched with one of your third party packages. for ex, your current Flutter SDK version is 1.20.0 and third party package targets Flutter SDK version 1.17.0.
Solution:
- look for the latest version of your package in https://pub.dev/packages/YOUR_PACKAGE_NAME
- or upgrade your flutter version if you don’t have the latest with flutter upgrade command.
After implementing the above solution, run the below command in the terminal.
flutter pub get