Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter loads old version of app every time I restart the app

Tags:

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.

like image 806
Toni Joe Avatar asked Apr 10 '18 11:04

Toni Joe


People also ask

How do you fix Flutter warning your Flutter application is created using an older version?

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.

How do you force update apps on Flutter?

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.

How do I clean my iOS Flutter?

Go to Tools > Flutter > Flutter Clean to clear the build cache of the Flutter project.


1 Answers

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

like image 67
Günter Zöchbauer Avatar answered Oct 20 '22 13:10

Günter Zöchbauer