gpt4 book ai didi

linux - 解析 : Groovyc: Internal groovyc error: code 1

转载 作者:IT王子 更新时间:2023-10-29 00:27:49 32 4
gpt4 key购买 nike

我正在编译一个项目,该项目在 Eclipse 中运行良好,并使用 ant 构建良好,但在 IntelliJ IDEA 中给出:

  • 内部 groovyc 错误:代码 1

我该如何解决这个问题?其他错误消息包括:

1:35:46 PM Unknown Natures Detected
Imported projects contain unknown natures:
org.eclipse.jdt.groovy.core.groovyNature
Some settings may be lost after import.
1:43:55 PM Compilation completed with 1 error and 7 warnings in 20 sec
Groovyc: Cannot compile Groovy files: no Groovy library is defined for module

Groovy 本身安装在 Linux 上。在设置中将其添加为 groovy 编译器不会影响行为:

> groovy --version
Groovy Version: 1.7.4 JVM: 1.6.0_24

最佳答案

显然,您尝试将 Eclipse 项目导入 IDEA,但这还不够好。 (Groovy) Eclipse 带有它自己的 Groovy 版本,而在 IDEA 中,您必须添加 groovy-all-1.7.4.jar(或您想要使用的任何版本)作为编译依赖项。

关于linux - 解析 : Groovyc: Internal groovyc error: code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17224761/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com