Skip to content

Issue: Dependency Conflict between source_gen and floor_generator #866

Description

@ardevcraft

Classic "dependency hell".

A version solving conflict is preventing package updates or installation in the project.

Issue Summary

The build package is being constrained to two incompatible versions by:

  • source_gen
  • floor_generator

As a result, the dependency resolver fails to find a compatible version.


Error Log


Because source_gen >=4.2.1 depends on build >=3.0.2 <5.0.0
and floor_generator 1.5.0 depends on build ^2.4.1,
source_gen >=4.2.1 is incompatible with floor_generator 1.5.0.

And because no versions of floor_generator match >1.5.0 <2.0.0,
source_gen >=4.2.1 is incompatible with floor_generator ^1.5.0.

So, because smartedu_erp depends on both floor_generator ^1.5.0
and source_gen ^4.2.2, version solving failed.


Conflict Breakdown

Package Version Requires build Version
source_gen ^4.2.2 >=3.0.2 <5.0.0
floor_generator ^1.5.0 >=2.4.1 <3.0.0

There is no overlapping version of build that satisfies both constraints.


Root Cause

  • source_gen requires build >=3.0.2
  • floor_generator requires build <3.0.0

👉 These constraints are mutually exclusive, making resolution impossible.


Steps to Reproduce

  1. Add the following dependencies in pubspec.yaml:
dependencies:
  floor_generator: ^1.5.0
  source_gen: ^4.2.2
  1. Run:
flutter pub get

Environment

  • Flutter SDK: 3.24.0 (example — update with your version)
  • Dart SDK: [Insert your version]

Result

Dependency resolution fails with a version solver error.


Notes

This is a classic transitive dependency conflict where two packages require incompatible versions of the same dependency.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions