Reputation: 8417
Every time I run the flutter app from IntelliJ, it loads an old outdated version of the app from days ago. 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.
Upvotes: 27
Views: 8107
Reputation: 4293
Don't know how this bug hasn't been resolved by now.
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.
Upvotes: 1
Reputation: 973
Easy way to do it using Android Studio as shown in snapshot.
Upvotes: 6
Reputation: 657516
This is a bug (https://github.com/flutter/flutter/issues/16604) because Flutter should better recognize when rebuilding is required, but running
flutter clean
should fix it in the meantime
Upvotes: 26