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.
Delete the android and iOS files. Then run flutter create . to fix the issue. The command will recreate your Android and iOS file. if you haven't added any platform-specific code this can work.
You can use https://appupgrade.dev/ service to force update you mobile apps. You need to create new version for your app versions you want to update in the app upgrade service and select whether you want to force it or just want to let users know that new version is available.
Go to Tools > Flutter > Flutter Clean to clear the build cache of the Flutter project.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With