-
[flutter] 플러터 Cannot run with sound null safety, because the following dependenciesdon't support null safety 에러 해결하기앱 개발/플러터(Flutter) 2022. 7. 24. 03:50반응형
플러터 코딩을 하다가 아래와 같이
Cannot run with sound null safety, because the following dependencies
don't support null safety:이하의 에러가 발생한다면, ( 어떻게 해결하는지에 대한 포스팅이다.
아래는 에러 전문이다.)
Cannot run with sound null safety, because the following dependencies don't support null safety: - package:flutter_screenutil For solutions, see https://dart.dev/go/unsound-null-safety FAILURE: Build failed with an exception. * Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156 * What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command 'C:\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 32s Exception: Gradle task assembleDebug failed with exit code 1
해결 : 안드로이드 스튜디오 상에서 run > edit configurations > additinal run args에 "--no-sound-null-safety" 추가
위와 같이 additinal run args 창에 --no-sound-null-safety를 추가하면 에러가 해결되고 정상적으로 작동한다.
오류, 질문이 있으면 댓글달아주세요
구독은 항상 환영입니다 :)
반응형'앱 개발 > 플러터(Flutter)' 카테고리의 다른 글