标签: flutter3.x

错误:字段“wLanguage”不能为空或类型为“Null”,它必须是“int”、“double”、“Pointer”或“Struct”或“Union”的子类型

运行flutter build appbundle命令时,我收到以下错误:

../../.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/lib/src/file_version_info.dart:13:17: 
Error: Field 'wLanguage' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
  external int? wLanguage;
                ^

../../.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/lib/src/file_version_info.dart:16:17: 
Error: Field 'wCodePage' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
  external int? wCodePage;
                ^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)

我使用的是颤振3.10.0。在我更新flutter版本之前,项目运行得很好。

flutter flutter-dependencies flutter3.x

35
推荐指数
4
解决办法
2万
查看次数

标签 统计

flutter ×1

flutter-dependencies ×1

flutter3.x ×1