【flutter版本升级】【Nativeshell适配】nativeshell需要做哪些更改

flutter

从3.13.9

升级:3.27.2

nativeshell组合库中的

1、nativeshell_build库替换为github上的最新代码

可以解决两个问题:

一个是arg("--ExtraFrontEndOptions=--no-sound-null-safety") 在新版flutter中这个构建参数不支持了导致的build错误(即内核build错误)

一个是bin/cache/artifacts/engine/darwin-x64/FlutterMacOS.framework" does not exist. Try running 'flutter precache'. 在build时的报错,因为新版的flutter库的这个目录darwin-x64 下没有直接的FlutterMacOS.framework文件

2、替换nativeshell_build后

(1)要在项目根目录下的toml文件中修改nativeshell_build的依赖

(2)还有rs写的nativeshell-0.1.16的toml文件中修改nativeshell_build的依赖,nativeshell_build = { version="0.1.1", path = "../nativeshell_build" }

相关推荐
Bryce李小白3 天前
Flutter 自定义 View 权威指引
flutter
恋猫de小郭3 天前
Fluttercon EU 2025 :Let‘s go far with Flutter
android·开发语言·flutter·ios·golang
SoaringHeart4 天前
Flutter进阶:自定义一个 json 转 model 工具
前端·flutter·dart
许泽宇的技术分享5 天前
Flutter + Ollama:开启本地AI的全平台新纪元 —— 从零剖析一款现代化AI客户端的技术奥秘
人工智能·flutter
molihuan5 天前
开源 全平台 哔哩哔哩缓存视频合并 Github地址:https://github.com/molihuan/hlbmerge_flutter
android·flutter·缓存·ffmpeg·开源·github·音视频
dora5 天前
Flutter中dart和原生代码的通信之MethodChannel
android·flutter
brave7236 天前
Riverpod 3.0.0 版本中 Provider 类型选择指南
flutter
ZFJ_张福杰6 天前
【区块链】Fiat24 深度解读(含 Flutter 集成与 SDK 骨架)
flutter·web3·区块链·钱包
古希腊被code拿捏的神6 天前
【Flutter】抽象类的运用(abstract与implements的实践)
flutter
ZFJ_张福杰6 天前
【Flutter】GetX最佳实践与避坑指南
android·flutter·ios·getx