0

screenshot

It is giving the following output:

Launching lib\main.dart on RMX2170 in debug mode... Running Gradle task 'assembleDebug'... Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

  • package:http
  • package:http_parser

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: 1159

  • 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.

BUILD FAILED in 17s Exception: Gradle task assembleDebug failed with exit code 1

Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56

1 Answers1

1

You could check outdated dependencies by

dart pub outdated --mode=null-safety

For more information check the guide https://dart.dev/null-safety/migration-guide