How to set build and version number of Flutter app

前端 未结 5 1874
悲哀的现实
悲哀的现实 2020-12-29 19:55

How do you set the version name and version code of a Flutter app without having to go into the Android and iOS settings?

In my pubspec.yaml I have

v         


        
5条回答
  •  没有蜡笔的小新
    2020-12-29 20:39

    What worked for me:

    • Update pubspec.yaml inside flutter project file for versionname and versioncode.
    • Run flutter pub get.
    • Run your project in a device.
    • Open android module in Andriod Studio and check local.properties for updated flutter.versionName flutter.versionCode file in gradle folder.

提交回复
热议问题