Skip to main content

Version Solving Failed Due to Incompatible Package

A version solving failed error may occur when running flutter pub get if package versions in the project conflict with FlutterFlow's supported Flutter version.

Running "flutter pub get" in flutter_tools... 3.4s
Resolving dependencies...
Because every version of flutter_test from sdk depends on collection 1.15.0
and horse_care_new depends on collection 1.16.0,
flutter_test from sdk is forbidden.
So, because horse_care_new depends on flutter_test from sdk,
version solving failed.
pub finished with exit code 1
Prerequisites
  • Custom actions or widgets are used in the project.
  • Access to the project's pubspec.yaml file.

Steps to Resolve the Error:

  • Verify that all packages used in custom actions or widgets are compatible with FlutterFlow's Flutter version.

  • Before adding a new dependency in your custom widget or action, check if the package already exists in pubspec.yaml. If it does, only import the package in your code without adding it again as a dependency.

  • If no custom widgets or actions are used and the error persists, contact FlutterFlow Support at support@flutterflow.io for assistance.

Was this article helpful?