Gradle doesn't sync after removing kotlin-android-extensions plugin

Viewed 138

I try to remove below plugin from Gradle :

apply plugin: 'kotlin-android-extensions'

But it doesn't sync and error:

A problem occurred evaluating project ':app'.
> No signature of method: build_43umlschc8aredhqs1z2ho67w.android() is applicable for argument types: (build_43umlschc8aredhqs1z2ho67w$_run_closure1) values: [build_43umlschc8aredhqs1z2ho67w$_run_closure1@786e3050]

Thanks for any help.

1 Answers

1- just remove this code from android block in build.gradle:

android {
    androidExtensions {
       experimental = true
    }
}

or remove extra character like: semicolon or other extra character in android block in build.gradle

2- if you use parcelize in your project add:

apply plugin: 'kotlin-parcelize'

in your build.gradle.

then replace:

import kotlinx.android.parcel.Parcelize

with :

import kotlinx.parcelize.Parcelize
Related