How to solve “Your APK's version code needs to be higher than 2.” in Google Play's Developer Console?

后端 未结 16 687
半阙折子戏
半阙折子戏 2020-12-08 09:28

I\'m getting this error when uploading my Phonegap app to the Google Play Developer Console:

Your APK\'s version code needs to be higher than 2.

<
16条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 09:55

    I found that if you are using Android Studio, you need to update the version code in the build.gradle file. For example:

    defaultConfig {
        applicationId "app.myapp"
        minSdkVersion 14
        targetSdkVersion 20
        versionCode 2
        versionName "1.0.0"
    }
    

    ...

提交回复
热议问题