Kotlin / kotlin-koans

Kotlin workshop
MIT License
2.6k stars 1.41k forks source link

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

Closed MattFriedman closed 7 years ago

MattFriedman commented 7 years ago

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 commented 7 years ago

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

svtk commented 7 years ago

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!

haslers commented 7 years ago

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 commented 6 years ago

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

muhammadFawzy commented 5 years ago

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?