Skip to content

Incompatible dependencies #16

Closed
Closed

Description

@macabeus

I'm trying to upgrade Flutter version on my project, but looks like that there are incompatible dependencies on the project:

Because test >=1.16.0-nullsafety.5 depends on pedantic >=1.10.0-nullsafety <1.10.0 and syncfusion_flutter_core >=18.2.54 depends on pedantic >=1.9.0 <1.9.9, test >=1.16.0-nullsafety.5 is incompatible with syncfusion_flutter_core >=18.2.54.

How could I solve that?

Activity

  1. SriramKiranSenthilkumar commented on Oct 13, 2020

    @SriramKiranSenthilkumar
    Contributor

    Hi @macabeus,

    Thanks for contacting Syncfusion Support. We have analyzed your query and we tried to replicate the reported issue regarding version solving errors with the latest flutter SDK version and we are not able to replicate the reported issue at our end. So, we kindly request you to share us with the Flutter SDK version along with channel info which you are using in your machine to build Flutter App projects and also the other dependencies which you are using in your Flutter project along with our Sycnfusion flutter widgets(i.e., share us your Flutter project's dependencies you have provided in the pubspec.yaml file). This will be helpful in providing the solutions sooner.

    Regards,
    Sriram Kiran

  2. jamesdixon commented on Oct 14, 2020

    @jamesdixon

    I'm also running into the same issue, specifically when attempting to run flutter drive.

    I'm using Flutter Stable, 1.22.1 but also saw this on 1.22.0.

    Here's my pubspec.yaml:

    environment:
      sdk: ">=2.7.0 <3.0.0"
    
    dependencies:
      flutter:
        sdk: flutter
      flutter_data:
        git:
          url: https://github.com/flutterdata/flutter_data.git
          ref: 0.5.5
      flutter_data_json_api_adapter:
        git:
          url: https://github.com/flutterdata/flutter_data_json_api_adapter.git
          ref: 0.1.3
      flutter_data_state:
        git:
          url: https://github.com/flutterdata/data_state.git
          path: packages/flutter_data_state
          ref: 0.3.6
      map_launcher:
        git:
          url: git://github.com/scoutforpets/map_launcher.git
          ref: master
      auto_route: ^0.6.7
      flutter_easyrefresh: ^2.1.5
      flutter_hooks: ^0.14.1
      flutter_secure_storage: ^3.3.4
      flutter_vibrate: ^1.0.0
      font_awesome_flutter: ^8.8.1
      google_fonts: ^1.1.0
      hooks_riverpod: ^0.11.1
      http: ^0.12.2
      intl: ^0.16.1
      json_annotation: ^3.0.1
      path_provider: ^1.6.7
      syncfusion_flutter_datepicker: ^18.3.35-beta
      url_launcher: ^5.7.2
      validators: ^2.0.1
    
    # temp fix for auto_route issues
    # https://github.com/Milad-Akarie/auto_route_library/issues/250#issuecomment-702769836
    dependency_overrides:
      analyzer: "0.39.15"
    
    dev_dependencies:
      flutter_driver:
        sdk: flutter
      test:
      auto_route_generator: ^0.6.8
      build_runner: ^1.10.0
      freezed: ^0.11.0
      json_serializable: ^3.3.0
    
    flutter:
      uses-material-design: true
    
      assets:
        - assets/config.json

    I can confirm that removing the date picker fixes the issue.

  3. jamesdixon commented on Oct 14, 2020

    @jamesdixon

    Screen Shot 2020-10-13 at 11 19 47

  4. macabeus commented on Oct 14, 2020

    @macabeus
    Author

    @jamesdixon I avoided my error using an old syncfusion version: 18.2.48

  5. jamesdixon commented on Oct 14, 2020

    @jamesdixon

    @macabeus thanks!

    I actually just tried the following and is now working for me with the latest syncfusion version:

    dependency_overrides:
      # https://github.com/syncfusion/flutter-widgets/issues/16
      pedantic: 1.10.0-nullsafety.1
    
  6. SriramKiranSenthilkumar commented on Oct 15, 2020

    @SriramKiranSenthilkumar
    Contributor

    Hi @jamesdixon ,

    Thanks for the revert. We hope that the above-suggested method resolved the reported version solving issues at your end. Please get back to us if you require further assistance.

    Regards,
    Sriram Kiran

  7. mshadmnaeo commented on Nov 29, 2020

    @mshadmnaeo

    @macabeus thanks!

    I actually just tried the following and is now working for me with the latest syncfusion version:

    dependency_overrides:
      # https://github.com/syncfusion/flutter-widgets/issues/16
      pedantic: 1.10.0-nullsafety.1
    

    This saved my day. Thanks!

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