SyntaxFix
Write A Post
Hire A Developer
Questions
Easiest solution is to use BuildConfig.
BuildConfig
I use BuildConfig.VERSION_NAME in my application.
BuildConfig.VERSION_NAME
You can also use BuildConfig.VERSION_CODE to get version code.
BuildConfig.VERSION_CODE