Why kotlin-android-extensions not enabled by default in this latest version of Android Studio? In fact, as long as i know, i have to manually add the plugin in gradle files. Any workaround so that i can add the plugin and enable it automatically everytime i create new project? Thanks before.
ICYMI, this is the code that needs to be added to enable kotlin-android
plugins {
id 'com.android.application'
id 'kotlin-android'
// add kotlin-android-extensions
id 'kotlin-android-extensions'
}
They are not supported with Java. There are still projects that are written in Java and may not be fully migrated to Kotlin yet, and hence Kotlin Synthetics may not be a consistent way of getting the ViewIds in your project. Because of these issues, Kotlin Synthetics is now being deprecated.
kotlin-android-extensions
is deprecated, you must use view binding
In Kotlin 1.4.20-M2 JetBrains deprecated Kotlin Android Extensions compiler plugin.
kotlinx.android.synthetic is no longer a recommended practice. Removing in favour of explicit findViewById
Very sad news :(, i hate viewBinding
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With