skip to Main Content

Is it possible to set a long version number more for an flutter app? Note that may app is already launched in google play.

I want a version number be like this 3.0.25.1 in Google play ( .1 in the end).
The problem in Android studion -> pubspec.yaml when I set 3.0.25.1+133

I got the following error

Error on line 14, column 10 of pubspec.yaml: Invalid version number: Could not parse "3.0.25.1+133".
   ╷
14 │ version: 3.0.25.1+133 
   │          ^^^^^^^^^^^^
   ╵
pub get failed
command: "C:FlutterSDKflutterbincachedart-sdkbindart __deprecated_pub --directory . get --example"
pub env: {
  "FLUTTER_ROOT": "C:FlutterSDKflutter",
  "PUB_ENVIRONMENT": "flutter_cli:get",
  "PUB_CACHE": "C:UsersmypcAppDataLocalPubCache",
}
exit code: 65

2

Answers


  1. enter image description here

    It mean

    The string that’s being validated should match this pattern to pass the schema validation. For example, a valid string could be "1.2.3" or "1.2.3-alpha"or "1.2.3+12", while a string like "invalid-string" would not match this pattern.

    Login or Signup to reply.
  2. Yes, it is possible.

    Step 1: Select Project and open in any IDE

    Step 2: Select this open on right side after select you will see whole files in your project.

    Image description

    Step 3: Open App Level build.gradle file.

    Image description

    Step 4:- Search versionCode or versionName in this file you will [![enter image description here][1]][1]find in defaultConfig map.

    Step 5:- Add your version code and version name. keep in mind version code is build number. so in your case your versionName "3.0.25.1" .

    Image description.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search