Answers for "android kotlin cannot @+id in MainActivity"

0

android kotlin cannot @+id in MainActivity

// in build.gradle(Module:your_app.app) at the begginig of file add last id
// this will allow to call elements from xml in MainActivity.kt file
// for example: button1.setOnClickListener()...

plugins {
    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-android-extensions'
}
Posted by: Guest on November-08-2020

Code answers related to "android kotlin cannot @+id in MainActivity"

Browse Popular Code Answers by Language