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

后端 未结 19 1329
温柔的废话
温柔的废话 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

    In my case I had something like this in my AndroidManifest,

          javaCompileOptions {
            annotationProcessorOptions {
                arguments = [
                        'androidManifestFile': 'app\\build\\intermediates\\merged_manifests\\debug\\processDebugManifest\\merged\\AndroidManifest.xml'
                ]
            }
       }
    

    here the 'androidManifestFile' location is wrong, changed it to

    "androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString()
    

    everything worked

提交回复
热议问题