如何在 Flutter 中构建 apk 创建旧版本的应用程序 [英] how to build apk create old version app in Flutter

查看:24
本文介绍了如何在 Flutter 中构建 apk 创建旧版本的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Flutter 和运行时构建我的发布应用:

I am trying to build my release app in Flutter and when I run:

flutter run

在调试和测试模式下一切正常.但是当我尝试使用以下内容构建发布应用程序时:

everything works fine in debugging and test mode. But when I was trying to build a release app with:

flutter build apk

它创建了我的一个旧的首次发布应用程序.我之前创建的,我尝试重置计算机重置 android 和一切但不起作用我该怎么做才能重置它并清除缓存?我几乎试图删除和重置所有内容,但它们不起作用.我必须运行什么命令来修复它并创建新版本发布 apk

it creates an old first-release app of mine. That I created before and I try to reset the computer reset android and everything but not work what can I do to reset it and clear the cache? I'm trying almost to delete and reset everything but they don't work. What command that I have to run to fix it and create new version release apk

推荐答案

解决方案很简单.
只需运行 flutter clean 并在此之后运行 flutter build apk 并生成更新应用程序 apk.
如果你想直接安装它,只需在构建命令之后运行 flutter install.

the solution is easy.
just run flutter clean and run flutter build apk after that and it generate update app apk.
if you want to install it directly just run flutter install after the build command.

这篇关于如何在 Flutter 中构建 apk 创建旧版本的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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