Skip to content

Version solving failed when upgrading from build_runner v2.7.1 to v2.10.1 #26

@dizzib

Description

@dizzib
Resolving dependencies in `/mnt/project/flutter.src/com.me2christ.bible_feed`... (5.2s)
Note: test_api is pinned to version 0.7.6 by flutter_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because build_runner >=2.10.0 depends on analyzer ^8.0.0 and test 1.26.2 depends on analyzer >=6.0.0 <8.0.0, build_runner >=2.10.0 is incompatible with test 1.26.2.
And because parameterized_test 2.0.2 depends on test ^1.26.2 and no versions of parameterized_test match >2.0.2 <3.0.0, if build_runner >=2.10.0 and parameterized_test ^2.0.2 then
  test >1.26.2 <2.0.0.
Because no versions of test match >1.26.2 <1.26.3 and test >=1.26.3 depends on test_api 0.7.7, test >1.26.2 requires test_api 0.7.7.
Thus, if build_runner >=2.10.0 and parameterized_test ^2.0.2 then test_api 0.7.7.
And because every version of flutter_test from sdk depends on test_api 0.7.6 and bible_feed depends on build_runner ^2.10.1, parameterized_test ^2.0.2 is incompatible with
  flutter_test from sdk.
So, because bible_feed depends on both flutter_test from sdk and parameterized_test ^2.0.2, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on build_runner: dart pub add dev:build_runner:^2.7.1

Flutter doctor…

[✓] Flutter (Channel stable, 3.35.2, on Debian GNU/Linux 13 (trixie) 6.15.11-orbstack-00542-g4f455d264886, locale en_US) [53ms]
    • Flutter version 3.35.2 on channel stable at /Volumes/2TB_DEV/sdk/mise/installs/flutter/3.35.2-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 05db968908 (9 weeks ago), 2025-08-25 10:21:35 -0700
    • Engine revision a8bfdfc394
    • Dart version 3.9.0
    • DevTools version 2.48.0
    • Feature flags: no-enable-web, no-enable-linux-desktop, no-enable-macos-desktop, no-enable-windows-desktop, enable-android, no-enable-ios, cli-animations, enable-lldb-debugging

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