Update version:A.B.C+X
in pubspec.yaml
.
For Android:
A.B.C
represents the versionName
such as 1.0.0
.
X
(the number after the +
) represents the versionCode
such as 1
, 2
, 3
, etc.
Do not forget to execute flutter build apk
or flutter run
after this step, because: When you run flutter build apk
or flutter run
after updating this version
in the pubspec
file, the versionName
and versionCode
in local.properties
are updated which are later picked up in the build.gradle (app)
when you build your flutter project using flutter build apk
or flutter run
which is ultimately responsible for setting the versionName
and versionCode
for the apk.
For iOS:
A.B.C
represents the CFBundleShortVersionString
such as 1.0.0
.
X
(the number after the +
) represents the CFBundleVersion
such as 1
, 2
, 3
, etc.
Do not forget to execute flutter build ipa
or flutter run
after this step
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…