Upload failed You need to use a different version code for your APK because you already have one with version code 2

后端 未结 19 1385
温柔的废话
温柔的废话 2020-12-22 20:59

According to this answer How to solve "Your APK's version code needs to be higher than 2." in Google Play's Developer Console? I have just changed the vers

19条回答
  •  被撕碎了的回忆
    2020-12-22 21:11

    (For Flutter App) You need to use a different version code for your APK or Android App Bundle because you already have one with version code 1.

    Don't be panic...

    You need to change in Flutter Version from pubspec.yaml file and Version Code from local.properties file.

    First go to your pubspec.yaml file. The first three lines should be name, description and version of App.

    Before Release -

    For you the version might look something like this:

    version: 1.0.0+1

    So before creating an apk for release (for update your exiting app on Google Play Console i.e for new update) make sure you increment this number by 1. (You should increment it as there's no requirement on increment step) .

    Solution

    Just change that version to (As per your need )

    version: 1.0.1+2

    And Second if

    flutter.versionCode in Project -> android -> local.properties is

    flutter.versionCode=1 then change it or upgrade it to the flutter.versionCode=2 or any other greater number than previous code.

    And finally release the app as per documentation.

提交回复
热议问题