trying to generate .js file so it can be used like other .js files in HTML but getting this error.
Copy code
Could not create an instance of type org.jetbrains.kotlin.gradle.targets.js.subtargets.KotlinBrowserJs.
> Failed to apply plugin [class 'org.gradle.language.base.plugins.LifecycleBasePlugin']
> Cannot add task 'clean' as a task with that name already exists.
might be super late - but i found this message when i searched with the same error stacktrace i got. Solution is to remove the additional clean task android template seems to add in root build.gradle