IntelliJ IDEA won't load Groovy found on my disk

坚强是说给别人听的谎言 提交于 2019-12-30 09:01:53

问题


Hi I lately wanted to start developing in Groovy but when I try IntelliJ IDEA it won't load Groovy cause it says:

Looks like Groovy distribution in specified path is broken. Cannot determine version.

Whats going on I even tried some older release and it didn't work either :( Did someone have same problem or knows how to work that out?


回答1:


It's a known issue:

  • IDEA-170022 Cannot create Groovy project, because cannot create Groovy library (2.4.10 version)

As a workaround you can use Groovy 2.4.9 or rename groovy-2.4.10.jar to groovy-2.4.9.jar.

The problem is fixed for IntelliJ IDEA 2017.1.1 and 2016.3.6 versions.




回答2:


Ive changed groovy-x.x.x.jar to groovy.jar and it works in IntelliJ 2016.1.2




回答3:


Changing groovy-x.x.x.jar to groovy.jar solved my issue as well, I am using Intellij Idea 2017.2.2 with Groovy SDK groovy-2.5.0-beta-1




回答4:


Looks like there is an issue with the IntelliJ! This works by changing the jar. Thanks for sharing this. Just adding more bits.

Just in case, the jar is in the lib folder. I've downloaded the groovy-2.4.13 and rename the jar from /groovy-2.4.13/lib/groovy.2.4.13 to /groovy-2.4.13/lib/groovy



来源:https://stackoverflow.com/questions/43031763/intellij-idea-wont-load-groovy-found-on-my-disk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!