Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 303
Alireza Nazari Avatar asked Feb 19 '26 06:02

Alireza Nazari


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
like image 182
Farid Sharif Moghaddam Avatar answered Feb 20 '26 22:02

Farid Sharif Moghaddam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!