I am using Azure pipelines to build and distribute Android app which is coded in React Native. In order to Auto increment the version number for android builds, I am trying to use the android-manifest-version@1 task.
https://marketplace.visualstudio.com/items?itemName=vs-publisher-473885.motz-mobile-buildtasks
Here is the task I end up using –
- task: android-manifest-version@1
inputs:
sourcePath: '$(Build.SourcesDirectory)/android/app/src/main/AndroidManifest.xml'
versionCodeOption: 'buildid'
versionCode: '$(Build.BuildId)'
versionCodeOffset: '1'
versionName:
printFile: true
But when I run it, it gives the following error
Unable to find matched key
Not sure what I am doing wrong here. Any help or guidelines is appreciated.