Its available in BuildConfig.java.
So simply access version name like this:
And Version code could be accessed like this:
So simply access version name like this:
BuildConfig.VERSION_NAME
And Version code could be accessed like this:
BuildConfig.VERSION_CODE