Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Cannot add extension with name 'kotlin', as there is an extension already registered with that name #73

Closed
MattFriedman opened this issue Mar 18, 2017 · 5 comments

Comments

@MattFriedman
Copy link

Just cloned and I get the following:

 ./gradlew test

FAILURE: Build failed with an exception.

* Where:
Build file '/workspace/kotlin-koans/build.gradle' line: 15

* What went wrong:
A problem occurred evaluating root project 'kotlin-koans'.
> Failed to apply plugin [id 'kotlin2js']
   > Cannot add extension with name 'kotlin', as there is an extension already registered with that name.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.762 secs
@jelmew
Copy link

jelmew commented Mar 20, 2017

Same problem here aswell. It seemds the kotlin2js plugin has the same name?

@svtk
Copy link
Contributor

svtk commented Mar 20, 2017

The Kotlin Koans project doesn't use 'kotlin2js' at all. I can't reproduce this.
Could you please create an issue (kotl.in/issue) describing what version of IDE you're using (IntelliJ IDEA or Android Studio with the version) and the version of the Kotlin plugin as well (can be found in Preferences -> Plugins).
Thank you!

@svtk svtk closed this as completed Mar 20, 2017
@haslers
Copy link

haslers commented May 19, 2017

This is an IntelliJ Problem. IntelliJ adds kotlin2js to the project if you try to configure Kotlin automatically within IntelliJ. For me, it helped to delete the kotlin2js dependency and re-import the project with gradle.

@KyLeggiero
Copy link

Thank you, @haslers! You helped me in a completely separate project, but this was the first result on Google 😄

@muhammadFawzy
Copy link

This is an IntelliJ Problem. IntelliJ adds kotlin2js to the project if you try to configure Kotlin automatically within IntelliJ. For me, it helped to delete the kotlin2js dependency and re-import the project with gradle.

can u explaing how to solve it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants