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
- Add the following dependencies in
pubspec.yaml:
dependencies:
floor_generator: ^1.5.0
source_gen: ^4.2.2
- Run:
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.
Classic "dependency hell".
A version solving conflict is preventing package updates or installation in the project.
Issue Summary
The
buildpackage is being constrained to two incompatible versions by:source_genfloor_generatorAs a result, the dependency resolver fails to find a compatible version.
Error Log
Conflict Breakdown
buildVersionThere is no overlapping version of
buildthat satisfies both constraints.Root Cause
source_genrequiresbuild >=3.0.2floor_generatorrequiresbuild <3.0.0👉 These constraints are mutually exclusive, making resolution impossible.
Steps to Reproduce
pubspec.yaml:Environment
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.