Rightpoint / android-template

A `cookiecutter` template for Android projects
28 stars 4 forks source link

Use org.jetbrains.kotlin.android.extensions #4

Closed octohub closed 6 years ago

octohub commented 6 years ago

Ran into this issue on a project where some views deep into hierarchy referenced via the binding would be highlighted in red in the activity. Also import kotlinx.android.synthetic.main.controller_activity.view.* import kept getting deleted by Organize Imports Action, which Android Studio wrongly considered as unused. This nonsense was stopped by specifying the <<apply plugin: "org.jetbrains.kotlin.android.extensions">> like so (per https://plugins.gradle.org/plugin/org.jetbrains.kotlin.android.extensions)

octohub commented 6 years ago

Already merged.