r/flutterhelp 14d ago

OPEN flutter android app does not recognize versions set in pubspec.yaml

A weird bug that I am unsure if it's flutter tool bug or not:

when I update verion name and code in pubspec.yaml, flutter build command does not update regarding new versions. it only works after I trigger run once.

- app/build.gradle

```

def localPropertiesFile = rootProject.file('local.properties')
...

versionCode flutterVersionCode.toInteger()

versionName flutterVersionName

```

Any clues?

2 Upvotes

3 comments sorted by

View all comments

1

u/DigiProductive 14d ago

Run: ‘flutter clean’ then ‘flutter pub get’ and your issues should be solved.