0

I can build the Flutter app with my expect:

Version code: 200008 Version name: 2.0.8

But, I try with my experience never successful, here are examples that I tried:

1. Try with the version in pubspec.yaml

version: 2.0.8+200008

Result:

version code: 202008 version name: 2.0.8

2. Try with flutter tool in CLI

flutter build apk --build-name=2.0.8 --build-number=200008

Result:

version code: 202008 version name: 2.0.8

Please help me....

2
  • Did you run any of the following commands after first step? flutter packages get, flutter build, flutter run Commented Nov 14, 2020 at 7:00
  • Yes, i run command flutter pub get, flutter run, and flutter build .. Commented Nov 15, 2020 at 8:17

2 Answers 2

1

Actually it seems to be works fine. How you check your version code and name? Can you check them with this package.

Sign up to request clarification or add additional context in comments.

1 Comment

No, when debug mode is fine, but when build to APK/ release not work
0

I guess you built apk with parameters "--split-per-abi", so each apk has its own version code. Please refer to this documentation.

In this way, you need not fix it, because Play Store does not allow multiple apks for the same app have the same version information.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.