나는 오래된 플러터 프로젝트입니다. 그 안에 내가 이류 part 'Target of URI hasn't been generated: 'MoorDatabase.g.dart'.Try running the generator that will generate the file referenced by the URI.
. 그래서 내가 이 명령에 사용되는 flutter pub run build_runner build
. 하지만 그것이 나를 보여줍니 이는 오류 Bad state: Unexpected diagnostics: C:\flutter\bin\cache\dart-sdk\lib\internal\internal.dart:691:16 - This requires the 'non-nullable' language feature to be enabled.[SEVERE] floor_generator:floor_generator on test/bloc/report_bloc_test.dart:
. 어떻게 그것을 해결할 수 있습니까?
나는 무엇을 이미 수행:
- 내가 사용하는
flutter pub upgrade
명령하고 업그레이드 중 일부 종속성입니다. 88 패키지로 새로운 버전과 호환되지 않는 종속성 제약 조건이 있습니다. 나를 업데이트하는 모든 종속성을 수동으로,그러나 그들의 대부분은 서로 호환되지 않는 다른 - 을 시도하는 동기화 프로젝트 안드로이드 스튜디오에이고 다시 시작 dart 분석
- 캐시를 삭제하고 다시 다운로드 종속성
pub finished with exit code 78