[英]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应该同时修复它
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.