flutter 升级最新版本 使用 treeview 打包报错 This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:解决方案。

This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:

 

解决方法 :图标数据加载问题。 最新版本flutter sdk 存在的bug ,

1.

2.打包时加上 --no-tree-shake-icons

flutter build apk  (作者采用这种方式)

3.将flutter sdk 版本退回到稳定版本 如  

stable v1.17.5 (生产建议用 稳定版 ,。。。。。。)

 

posted @ 2020-09-21 10:16  醉饮山河555  阅读(2516)  评论(0编辑  收藏  举报