mám starý Flutter projektu. V něm mám chybu part 'Target of URI hasn't been generated: 'MoorDatabase.g.dart'.Try running the generator that will generate the file referenced by the URI.
. Tak jsem použil tento příkaz flutter pub run build_runner build
. Ale ukazuje mi to chybu 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:
. Jak to mohu opravit?
Co jsem již udělal:
- použil jsem
flutter pub upgrade
command a upgradovat některé ze závislostí. 88 balíčků novějšími verzemi nekompatibilní s závislost omezení. Snažil jsem se aktualizovat všechny závislosti ručně, ale většina z nich byla vzájemně neslučitelné - snažil synchronizovat projekt v Android Studio a restartujte dart analytics
- vyčistil cache a re-stáhnout závislostí
pub finished with exit code 78