如何在Flutter中构建APK创建旧版本应用 [英] how to build apk create old version app in Flutter
问题描述
我是一名新的flutter程序员,我正在尝试在flutter中以及运行时构建我的发布应用程序
I am a new flutter programmer and I am trying to build my release app in flutter and when I run
颤动运行
一切在调试和测试模式下都可以正常工作.但是当我尝试使用以下版本构建发布应用程序时:
everything works fine in debugging and test mode. but when I was trying to build a release app with
flutter构建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.
如果要直接安装,只需在build命令后运行 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屋!