flutter Failed to build ../.pub-cache/hosted/pub.dev/win32_registry-1.1.3/lib/src/models/access_rights.dart:9:12: Error: Undefined name 'REG_SAM_FLAGS'.
当我通过系统和本地构建 ios 项目时,Flutter flow 最近开始抛出此错误。似乎是一些与 Windows 相关的部门,但它是 IOS?
我尝试了过去用 flutter 修复包问题的所有常规方法、清除缓存、删除锁定文件并重建内容,但没有成功。
任何人
看起来这是因为 flutter flow 在 pubspec.yaml 中使用的包已经过时了。并且引用了一些不存在的类型。它需要更新到最新版本并且应该正确构建。
在我的 pubspec.yaml 中:
dependency_overrides:
http: 1.2.0
uuid: ^4.0.0
win32: 5.0.9
更改为:
win32: 5.4.0
这是跟踪问题的底层 github 包。 https://github.com/halildurmus/win32_registry/issues/18
希望这有帮助!