[英]flutter build apk create old version app even though I did flutter clean
flutter build apk command keeps creating old version app. flutter build apk 命令不断创建旧版本的应用程序。
I have done troubleshooting in several ways using:我使用以下几种方式进行了故障排除:
flutter clean
-> flutter build apk
flutter clean
-> flutter build apk
flutter create newproject
-> copy lib and pubspec.yaml -> flutter build apk
flutter create newproject
-> 复制 lib 和 pubspec.yaml -> flutter build apk
flutter clean
-> flutter build apk --release
flutter clean
-> flutter build apk --release
However, none of the above method solve my problem.但是,上述方法都没有解决我的问题。 The only solution is build apk in debug mode.
唯一的解决方案是在调试模式下构建 apk。
flutter build apk --debug
But the output file has a quite large size memory.但是输出文件有相当大的内存。 Any suggestion such that I can build apk forced in the latest version and release mode?
有什么建议可以让我在最新版本和发布模式下强制构建 apk?
run pub-get
after you modify your pusbspec.yaml修改 pusbspec.yaml 后运行
pub-get
there are 2 common ways:有2种常见的方式:
flutter pub get
.flutter pub get
。pub-get
on top right usually of your pusbspec.yaml filepub-get
After that, try to build your APK.之后,尝试构建您的 APK。 Hope this can solve your issue :D
希望这可以解决您的问题:D
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.