flutter .g文件生成不了

时间:2022-08-08 12:21:29
[SEVERE] Conflicting outputs were detected and the build is unable to prompt for permission to remove them. These outputs must be removed manually or the build can be run with `--delete-conflicting-outputs`. The outputs are: lib/models/base_action_list_model.g.dart

运行:

flutter packages pub run build_runner build --delete-conflicting-outputs