All Collections
Google Play Store Deployment Issues
Failed Step: Get Flutter packages
Because [project name] depends on flutter_test from sdk, version solving failed.
Because [project name] depends on flutter_test from sdk, version solving failed.

How to fix this Codemagic error?

A
Written by Ashley
Updated over a week ago

Tip: Not sure which type of error your project has? Check out this article on how to identify your Codemagic error.

What does this error mean?

This issue happens when there are packages in your project with incompatible versions.

Full error message

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

How to resolve this issue?

  1. If you are using a custom action/widget in your project.

    1. Check if the package you use for custom action or widget is compatible with FlutterFlow's Flutter version.

    2. Check the pubspec.yaml file before adding the dependency to the custom widget/action so that if the package already exists in pubspec file, then you only need to add it as a header file in the custom widget/action code. You won't need to add the dependency separately.

  2. If you aren't using any custom widget or action, then please report this issue to support via Chat or Email at support@flutterflow.io.

Did this answer your question?