Flutter Release apk无法正常工作? [英] Flutter Release apk is not working properly?
问题描述
我已经运行了这个 flutter构建apk
来发布我的应用。现在我已经建立了版本2。
I had run this flutter build apk
to release my App. Now I had build verison 2 of that.
现在我想发布我的第2版应用。要获得发布apk,我再次运行此 flutter build apk
再次。我得到了发布的apk,但这是我的第1版发布的apk。
我转到已发布的目录并删除了已删除的已发布apk,然后再次尝试,然后我也获得了verion 1已发布的apk。
Now again I want to release my version 2 App.To get the release apk I again run this flutter build apk
again. I get released apk but It was my version 1 released apk.
I go to my released directory and deleted my deleted released apk and tried again then also I get verion 1 released apk.
在构建Verion 2时,我正在调试模式下进行测试。
While building verion 2 I was testing in debugging mode. everthing was/is working fine in dung mode .
这里是Github链接到该应用程序: https://github.com/nitishk72/Flutter-Github-API
Here is Github Link to that App: https://github.com/nitishk72/Flutter-Github-API
推荐答案
我认为您需要
flutter clean
(我认为这是一个必要的错误,但我也遇到了)
(I'd consider it a bug that this is necessary, but I'm encountering it as well)
flutter build apk --release
这篇关于Flutter Release apk无法正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!