Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.1.16 To fix above error in Android Studio rebuild the project from the menu using Build -> Rebuild Project.
Tag: kotlin
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
Kotlin tutorial – Kotlin from scratch
Learning Kotlin is fun, but where to get started? One the of the best tutorials for newbies is at https://code.tutsplus.com/series/kotlin-from-scratch--cms-1209. Learn from scratch. To practice, download IntelliJ IDEA and work on Kotlin code anytime in it.