您的位置:首页 > 教育 > 培训 > c语言必背100代码_东阳网站建设报价_seo网页的基础知识_百度推广云南总代理

c语言必背100代码_东阳网站建设报价_seo网页的基础知识_百度推广云南总代理

2024/10/5 19:16:27 来源:https://blog.csdn.net/weixin_53545232/article/details/142303903  浏览:    关键词:c语言必背100代码_东阳网站建设报价_seo网页的基础知识_百度推广云南总代理
c语言必背100代码_东阳网站建设报价_seo网页的基础知识_百度推广云南总代理

问题描述

原本我在Mac开发的项目,现在win10运行时报如下错误:

../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: Type 'UnmodifiableUint8ListView' not found.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: 'UnmodifiableUint8ListView' isn't a type.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:51:17: Error: Method not found: 'UnmodifiableUint8ListView'.
return Guid(UnmodifiableUint8ListView(guid));
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:55:31: Error: Method not found: 'UnmodifiableUint8ListView'.

 AS运行Flutter Doctor正常

问题分析

需要将 win32 软件包版本升级到最新版本,或者运行 flutter pub upgrade 命令将正在使用的所有依赖项升级到最新版本,最终解决问题。

问题解决

方案一、降级Flutter

方案二、执行命令,以更新软件包

flutter pub upgrade win32//如果 pub upgrade win32 无法正常工作,只需运行以下命令
flutter pub global activate -s git https://github.com/jonataslaw/get_cliflutter pub cache cleanflutter channel stableflutter clean && flutter pub getflutter pub upgrade

 

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com