<Display the version name in Kotlin> I am planning...
# stackoverflow
u
Display the version name in Kotlin I am planning to display the version code on my xml files but I am have an error to display the text. My Activity Code val displayVersion = findViewById(R.id.app_version) val appVersion = getString(R.string.app_version) val versionName: String = BuildConfig.VERSION_NAME displayVersion.text = "$appVersion $versionName" My XML Code Error Code displayVersion.text = "$appVersion $versionName" Maybe this error code are incorrect, because if ever I remove it the app will work.