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

后端 未结 16 708
半阙折子戏
半阙折子戏 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:52

    In Android studio I was only able to get this to work by changing the versionCode in the app file.

    android {
        compileSdkVersion 19
        buildToolsVersion '19.1.0'
        defaultConfig {
            applicationId 'xxxxxxxxxxxxxxx'
            minSdkVersion 14
            targetSdkVersion 19
            versionCode 3
            versionName '1.1'
        }
        buildTypes {
            release {
                runProguard false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        productFlavors {
        }
    }
    

提交回复
热议问题