DEV Community

loading...

Answer: Can´t import kotlinx.android.synthetic.main.activity_main.*

leminhduc1202
・1 min read

You need apply plugin kotlin-android-extensions in app build.gradle module like this

plugins {
    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-android-extensions'
}

However, you should do like @Uuu Uuu wrote above.

Discussion (0)