Home > OS >  id(String) method calls allowed in plugins {} script block error
id(String) method calls allowed in plugins {} script block error

Time:11-01

plugins {
    id 'com.android.application'
    id 'kotlin-android'
    kotlin("android.extensions")
 

        }

I am aware kotlin-android-extensions is deprecated now and this is the link to figure it out (https://goo.gle/kotlin-android-extensions-deprecation). I am just confused to what I update. I have a button that should show a message when the user does not enter their name through Toast.makeText , however this does not work and I believe it is due to my plugins etc. I have tried the view binding = true and kotlin("kotlin-extentions") and I get this error: only id(String) method calls allowed in plugins {} script block

CodePudding user response:

Replace kotlin("android.extensions") with id 'kotlin-android-extensions'.

  • Related