如果 rootBundle.load 冻结而不抛出错误,如何加载 flutter 资源文件?
我正在尝试将旧的 flutter 包更新为 Android v2 嵌入。然而,运行该示例只是在使用 rootBundle.load 第 153 行 (在 Windows 10、android studio 2021.1.1、android 模拟器 API 29,30,31 上测试)没有错误或任何错误。
分叉本身在这里: https://github.com/rix133/flutter_sphinx/
任何人都可以建议吗加载资源文件的更好方法或者指出我在 V2 中做错了什么?
我的猜测是,它在 Android v1 嵌入下工作。
I'm trying to update an old flutter package to Android v2 embedding. However running the example just freezes on loading an asset using rootBundle.load line 153 (tested on Windows 10, android studio 2021.1.1, android emulators API 29,30,31) no error or anything.
the fork itself is here: https://github.com/rix133/flutter_sphinx/
Can anybody suggest a better way of loading the asset files or point to me what I'm doing wrong in V2?
My guess is, that it was working under Android v1 embedding.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论