Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labeled null safe, but when but unable to compile because compiler says not null safe #66

Closed
pcelis19 opened this issue Mar 17, 2021 · 4 comments

Comments

@pcelis19
Copy link

pcelis19 commented Mar 17, 2021

When I try to compile my application I get the following error

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

  • package:awesome_dialog

  • package:simple_animations

  • package:flare_flutter

  • package:supercharged

  • package:sa_v1_migration

  • package:flare_dart

  • package:supercharged_dart

I looked at the Dependencies of Awesome Dialog, and found the following:

  • flare_flutter depends on flare_dart which isn't null safe and is "discontinued".

If I remove AwesomeDialog from my dependencies and compile without it, everything runs fine.

@marcos930807
Copy link
Owner

Hi, are you using de null safety prerelesse version 2.0??.

@marcos930807
Copy link
Owner

Even the prerelesse version do not relay on flare_dart as a transitive dependency

@pcelis19
Copy link
Author

pcelis19 commented Apr 2, 2021

I recently tried adding the package and I continue to get the null safety error. Here is my error:

Launching lib\main.dart on sdk gphone x86 in debug mode...
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

�[38;5;248m- package:awesome_dialog�[39;49m
�[38;5;248m- package:simple_animations�[39;49m
�[38;5;248m- package:flare_flutter�[39;49m

�[38;5;248m- package:supercharged�[39;49m
�[38;5;248m- package:sa_v1_migration�[39;49m
�[38;5;248m- package:flare_dart�[39;49m
�[38;5;248m- package:supercharged_dart�[39;49m

For solutions, see https://dart.dev/go/unsound-null-safety

FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1029
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

@marcos930807
Copy link
Owner

@pcelis19 make shure use the null safety version awesome_dialog: ^2.0.0-nullsafety.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants