'Gradle doesn't sync after removing kotlin-android-extensions plugin
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.
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
