简体   繁体   English

每次我重新启动应用程序时,Flutter 都会加载旧版本的应用程序

[英]Flutter loads old version of app every time I restart the app

Every time I run the flutter app from IntelliJ, it loads an old outdated version of the app from days ago.每次我从 IntelliJ 运行 flutter 应用程序时,它都会加载几天前应用程序的旧版本。 The new version of the app is only loaded after a hot reload and even then, if I restart the app, the old version is loaded again.新版本的应用程序仅在热重新加载后加载,即使如此,如果我重新启动应用程序,旧版本会再次加载。 I there any way I can fix this issue?我有什么办法可以解决这个问题吗? It's really frustrating.这真的很令人沮丧。

This is a bug ( https://github.com/flutter/flutter/issues/16604 ) because Flutter should better recognize when rebuilding is required, but running这是一个错误 ( https://github.com/flutter/flutter/issues/16604 ) 因为 Flutter 应该更好地识别何时需要重建,但正在运行

flutter clean

should fix it in the meantime应该同时修复它

在此处输入图片说明

Easy way to do it using Android Studio as shown in snapshot.使用 Android Studio 的简单方法,如快照所示。

Don't know how this bug hasn't been resolved by now.不知道现在这个bug怎么还没解决。

But for any one also struggling with this (using visual studio code), who already tried "flutter clean", the only thing that works for me is clicking on "restart" every time I start debugging.但是对于已经尝试过“flutter clean”的任何人(使用visual studio代码)也在为此苦苦挣扎,唯一对我有用的就是每次开始调试时单击“重新启动”。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使我做了 flutter clean,flutter build apk 也会创建旧版本的应用程序 - flutter build apk create old version app even though I did flutter clean 使用vscode开发一个flutter app,但是在手机上停止调试打开app后,却加载了之前的版本 - Using vscode to develop a flutter app, but after stopping the debugging and opening the app on the phone, it loads the previous version 我已在应用中更改了Firebase名称,但该应用仍加载了旧的Firebase - I have changed the Firebase name in my app but still the app loads the old firebase 当您发布使用 Flutter 编写的应用程序的新版本时,使用其他语言编写的旧应用程序数据会发生什么变化? - What happens to old app data written in another language when you release a new version of the App written in Flutter? 在Android上下载旧版本的应用程序 - Downloading old version app on android 每次我将图像添加到应用程序时,它都会崩溃 - Every time i added an image to the app it crashes 每次最小化应用程序时显示通知 - Display notification every time I minimize app 每次我用 Facebook 登录时应用程序都会关闭 - app closing every time i log in with facebook 如何一次性重新启动应用程序 - Firebase - How can I restart app one time - Firebase 在每个测试用例之后重新启动应用程序 - Restart App after every Test Case
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM