Not Generate Android APK Version wise using devops Pipeline after changes version code in build gradle and commit

别等时光非礼了梦想. 提交于 2021-01-29 10:22:31

问题


I have committed code after change Version Code in app Build Gradle File. I have run the pipeline in Azure DevOps. Complete the pipeline task and generate APK on drop folder but When I have published APK play store then got a message from Play store "Apk Version is already Used".


回答1:


If changing versionCode in the build.gradle file is not working. you can try removing the versionCode and versionName located under the default config, and add the versionCode and versionName in AndroidManifest.xml: Please check this thread.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="YOUR_PACKAGE_NAME"
    android:versionCode="1"
    android:versionName="1.0">

And also make sure the pipeline builds against the right branch to which the versionCode change is committed.

If you would like to automatically increase the version code, Please check auto Increase the version code in Android apk using Fastlane



来源:https://stackoverflow.com/questions/60206117/not-generate-android-apk-version-wise-using-devops-pipeline-after-changes-versio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!