Skip to content

更新,支持从最新的main分支编译#26

Closed
cfdworld wants to merge 1 commit intovnt-dev:flutterfrom
cfdworld:flutter
Closed

更新,支持从最新的main分支编译#26
cfdworld wants to merge 1 commit intovnt-dev:flutterfrom
cfdworld:flutter

Conversation

@cfdworld
Copy link

更新flutter到3.38.7,更新flutter_rust_bridge_codegen到2.11.1,更新android-studio到2025.2.3.9,linux和android版本经实测,已经可以完成编译。linux版本可正常使用。android版本启动时白屏,chatgpt分析为flutter框架中main函数中的runApp之前,不能执行“await RustLib.init();”,否则会造成死锁。这一行语句注释调后,白屏消失,可以进行页面,但是建立连接时,显示RustLib没有初始化。能力有限,不太懂flutter框架,难以修复。看有没有对这一块熟悉的大佬帮忙修复一下?

@cfdworld
Copy link
Author

核心问题应该是frb或者flutter版本过高不兼容,参考 https://github.com/lmq8267/VntApp 中版本,将frb降级到2.1,flutter版本降低到3.22,编译后的安卓apk已经可以使用。已经在 #27 中解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant