How to assign value to text view directly in Android Kotlin

In Android Studio, when referencing layout (GUI) elements, the normal flow is to use code as below: var tv = findViewById(R.id.tv_name) tv = myString But, in Kotlin, Prior Android version 10, it was easy to assign values to layout elements without using find_view_by_id by simply using: tv_name.text = myString However, this has stopped working and … Continue reading How to assign value to text view directly in Android Kotlin

IntelliJ IDEA displays error that Java SDK is not installed

When IntelliJ IDEA is installed, Kotlin applications cannot be compiled or run unless the Java SDK is installed. Choose to get the Oracle Java SDK or install the OpenJDK SDK corresponding to the OpenJDK Java Runtime Environment that has been installed. By default, the Linux distribution will just install the Java Runtime Environment (JRE). To … Continue reading IntelliJ IDEA displays error that Java SDK is not installed