Does anyone have working solution on this problem....
# android
s
Does anyone have working solution on this problem. I am facing it. I have a multi module project with kotlin multiplatform https://youtrack.jetbrains.com/issue/KT-33191/JS-Gradle-plugin-applies-BasePlugin-to-the[…]ses-build-configuration-fail-in-case-of-custom-clean-task
c
Well, how about deleting your custom task?
s
I have some custom logic to run. Do we need to delete it compulsorily to make it work @Chrimaeon
c
Then hook into the registered one. Use
named
instead of
register
s
tried this
Copy code
tasks.named("clean", Delete) {
    // logic
}
Getting this • Task with name 'clean' not found in root project 'my-android'
Fixed, Thanks
a
How did you fix it?
s
Just by adding id 'base' in plugins
🙌 1