flutter build apk创建旧版本的应用程序 [英] flutter build apk create old version app
问题描述
我是一个新的flutter程序员,我正在尝试在flutter中构建我的发布应用程序
I am a new flutter programmer and i am trying to build my release app in flutter and when i run
flutter run
在调试和测试模式下一切正常。
,但是当我尝试使用
everything work fine in debug and test mode. but when i was trying to build a release app with
flutter build apk
它创建了我的旧的第一版应用程序。我之前创建的尝试重新设置android和所有内容但无法正常工作的方法我该怎么做以重置它并清除缓存?
即时尝试几乎删除并重置所有内容,但它们不起作用。
我必须运行以修复它并创建新版本的APK的命令
it create a old first release app of mine . that i created before and i try to reset computer reset android and everything but not work what can i do to reset it and clear the cache? im trying almost delete and reset everything but they dont work. what command that i have to run to fix it and create new version realease 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 build apk创建旧版本的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!