Flutter应用程序太大了 [英] Flutter apps are too big in size

查看:625
本文介绍了Flutter应用程序太大了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用java的Android应用程序开发方面有很好的经验。最近我开始了解颤动。所以,我试图根据官方教程创建一个带有颤动的简单Android应用程序。但令人惊讶的是,调试应用程序大小为25MB,发布apk的成本超过7MB。与原生开发的Android应用程序相比,它真的更大。

I have good experience in android app development using java. Recently I came to know about flutter. So, I have tried to create a simple android app with flutter based on official tutorial. But surprisingly the debug app size is 25MB and release apk costs more than 7MB. It is really larger when compare with native developed android app.

有没有办法优化它?

推荐答案

是的当然,对于hello world app,用flutter构建的apk或ipa的大小最小为〜7mb。这是因为,flutter发布了一个核心引擎,框架,ICU数据,LICENSE文件等及其构建输出,这对于一个颤动的应用程序来说是必须的。

Yes ofcourse, the size of the apk or ipa built with flutter will be minimum of ~7mb for a hello world app. This is because, flutter ships a core engine, framework, ICU data, LICENSE file etc with its build output which are mandatory for a flutter app to run.

你可以查看在这里的常见问题解答中了解更多关于需要多少费用的内容构建时的大小。

You can check out the FAQ here to know more about what takes how much size when build.

希望有所帮助!

这篇关于Flutter应用程序太大了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆