问题
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