mam stary projekt Flutter. W nim mam ten błąd part 'Target of URI hasn't been generated: 'MoorDatabase.g.dart'.Try running the generator that will generate the file referenced by the URI.
. Dlatego użyłem tej komendy flutter pub run build_runner build
. Ale to pokazuje mi ten błąd 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 mogę to naprawić?
Co już zrobiłem:
- użyłem
flutter pub upgrade
zespół i zaktualizowaniu pewne zależności. 88 pakietów mają więcej nowych wersji, która jest niezgodna z ograniczeniami zależności. Próbowałem zaktualizować wszystkie zależności ręcznie, ale większość z nich są sprzeczne ze sobą - próbowałem synchronizować projekt w Android Studio i ponownie uruchomić dart analytics
- oczyszczone cache i ponownie pobrane zależności
pub finished with exit code 78