我有一个旧扑项目。 在这我有这样的错误 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软件包的更新版本不兼容的依赖性的限制。 我试图更新所有依赖手,但是他们中的大多数都是彼此不相容 - 试图同步项目在机器人工作室,并重新启动镖分析
- 清除缓和重新下载的依赖关系
pub finished with exit code 78