使用Gradle更新Eclipse时出错

时间:2014-10-17 03:43:18

标签: android eclipse libgdx

我的日食: 版本:Indigo Service Release 2 构建ID:20120216-1857 (与Android ADT一起安装)

JDK 7 JRE 7

我最近学习了Libgdx成为grandle项目,因此它说使用Import-> Grandle->将libgdx jar创建的项目导入Eclipse。 但我无法在" import"。

中找到它

搜索之后,它必须在eclipse中添加额外的插件

我尝试使用Grandle通过&#34更新我的Eclipse;安装新软件"并添加网址,例如:

http://dist.springsource.com/snapshot/TOOLS/gradle/nightly (latest development snapshot)
http://dist.springsource.com/milestone/TOOLS/gradle (latest milestone build)
http://dist.springsource.com/release/TOOLS/gradle (latest release)

但它说错误如:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.core,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile6188792910440798483.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile6188792910440798483.jar
Problems downloading artifact: org.eclipse.update.feature,org.springsource.ide.eclipse.gradle.feature,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile9055408208958627131.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile9055408208958627131.jar
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.toolingapi,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile158162502031506472.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile158162502031506472.jar
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.ui,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile8390443836635093074.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile8390443836635093074.jar
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.ui.taskview,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile4151621413709401624.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile4151621413709401624.jar

我搜索更多链接并获取: https://www.eclipse.org/forums/index.php/t/243191/ 这说我必须在我的eclipse.ini

中添加以下通道
-Djava.util.Arrays.useLegacyMergeSort=true

但看起来根本没有结果..

我也遵循这个: https://github.com/spring-projects/eclipse-integration-gradle/ 但不能仍然显示上面的错误。

另一个链接: http://estiloasertivo.blogspot.com/2013/03/tutorial-howto-install-and-configure.html 还是不行。

我不知道我该怎么办。 请帮助我或指出我解决这些问题..

谢谢

对不起我的解释中有点乱。

3 个答案:

答案 0 :(得分:1)

您应该可以从主项目中打开命令行并执行'gradlew eclipse'。一旦运行,您应该能够在Eclipse中将其作为正常的现有项目导入,因为Gradle将生成Eclipse所需的项目文件,以便Eclipse识别和构建项目。

答案 1 :(得分:0)

不要将Eclipse更新为gradle,Gradle是一个单独的编译工具包,Android Studio中添加了此功能。所以,最好下载Android Studio而不是更新eclipse

答案 2 :(得分:0)

Eclipse建议(4.4)3.6.2.RELEASE 用于gradle插件。检查this。你只需要将安装按钮从这里拖到你的eclipse,它就会开始下载和安装。