I need to figure out how to get or make a build number for my Android application. I need the build number to display in the UI.
Do I have to do something with
If you want to use it on xml then add below line on your gradle file:
applicationVariants.all { variant -> variant.resValue "string", "versionName", variant.versionName }
And then use it on your xml like this: