question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: synchronized ^3.0.0-nullsafety

See original GitHub issue

Flutter Sound Version : ^7.6.2+6

  • FULL or LITE flavor ? Full

  • Important: Result of the command : flutter pub deps | grep flutter_sound

Because synchronized >=3.0.0-nullsafety.0 requires SDK version >=2.12.0-29 <3.0.0 and no versions of synchronized match >=3.0.0-nullsafety <3.0.0-nullsafety.0, synchronized >=3.0.0-nullsafety is forbidden.

So, because biomedian depends on flutter_sound ^7.6.2+6 which depends on synchronized ^3.0.0-nullsafety, version solving failed.
pub upgrade failed (1; So, because biomedian depends on flutter_sound ^7.6.2+6 which depends on synchronized ^3.0.0-nullsafety, version solving failed.)
exit code 1

Flutter doctor:

All done!
[√] Flutter: is fully installed. (Channel stable, 1.22.6, on Microsoft Windows
    [Version 10.0.19041.746], locale en-US)
[!] Android toolchain - develop for Android devices: is partially installed;
    more components are available. (Android SDK version 29.0.3)
[√] Android Studio: is fully installed. (version 4.0)
[√] Connected device: is fully installed. (1 available)

my pubspec.yaml :

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  http: ^0.12.0+2
  modal_progress_hud: ^0.1.3
  shared_preferences: ^0.5.6+2
  badges: ^1.1.0
  flutter_map: ^0.8.2
  latlong: ^0.6.1
  url_launcher: ^5.4.2
  cached_network_image: ^2.0.0
  flutter_sim_country_code: ^0.0.3
  country_code_picker: ^1.5.0
  country_codes: ^1.0.1
  provider: ^4.0.4
  charts_flutter: ^0.9.0
  webview_flutter: ^0.3.22+1
  persian_number_utility: ^0.1.0
  flutter_phone_direct_caller: ^1.0.1
  touchable: ^0.2.0
  font_awesome_flutter: ^8.11.0
  flutter_cached_pdfview: ^0.3.4
  image_picker: ^0.6.7+21
  flutter_sound: ^7.6.2+6
  permission_handler: ^5.0.1+1
  shamsi_date: ^0.9.1
  fluttertoast: ^7.1.6
  mime: ^0.9.7
  http_parser: ^3.1.4
  easy_localization: ^3.0.0-dev.1

dev_dependencies:
  flutter_test:
    sdk: flutter

dependency_overrides:
  intl: ^0.16.1
  path: 1.7.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Larpouxcommented, Feb 11, 2021

Hi Mohammad,

Dart/Flutter are doing a complete mess with NullSafety. The actual situation of Dart is really bad : NullSafety is incompatible with the old behavior of the compiler.

I do not remember why I had to upgrade our plugin synchronized ^3.0.0-nullsafety but this is an error and I am going to fix that.

Someone (me?) will have upgrade Flutter Sound and use the NullSafety option of the compiler, but this upgrade must be a parallel branch, and not the master branch.

[#584] is also something about NullSafety

0reactions
Larpouxcommented, Feb 11, 2021

Fixed in Flutter Sound release 7.6.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG]: synchronized ^3.0.0-nullsafety #624 - GitHub
Hi Mohammad,. Dart/Flutter are doing a complete mess with NullSafety. The actual situation of Dart is really bad : NullSafety is incompatible with...
Read more >
synchronized 3.0.0-nullsafety.1 | Dart Package - Pub.dev
The goal is to propose a solution similar to critical sections and offer a simple synchronized API à la Java style. It provides...
Read more >
How to resolve the 3rd party plugin conflicts in Flutter?
1, version solving failed.) I solved this problem by adding this in my pubspec.yaml file dependency_overrides: quiver: ^3.0.0.
Read more >
Null Safety Support For Flutter & Dart | by Shaiq khan
Sound null safety kills bugs brought about by null pointers. It makes types in your Dart code non-nullable naturally.
Read more >
log: org.tether.tether:2090 - F-Droid Monitor
Downloading flutter_dotenv 4.0.0-nullsafety.0. ... Downloading synchronized 3.0.0. ... 2,582ms Building with sound null safety Running Gradle task ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found