Is there any way to get the API version that the phone is currently running?
Like this:
String versionRelease = BuildConfig.VERSION_NAME; versionRelease :- 2.1.17
Please make sure your import package is correct ( import package your_application_package_name, otherwise it will not work properly).
import package your_application_package_name