2014-10-17 57 views
1

我的Eclipse: 版本:靛蓝服务发布2 版本ID:20120216-1857 (安装了Android ADT)错误当更新的Eclipse与Grandle

JDK 7 JRE 7

我最近学习Libgdx成为grandle项目,所以它说导入项目由libgdx jar创建到Eclipse使用Import-> Grandle - > .... 但我无法在“导入”中找到它。

搜索后,它必须加入额外的插件到Eclipse

我试图通过“安装新软件”,并添加URL,例如更新我的Grandle的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/ ,说我必须补充FOLL由于车道的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 仍然无法正常工作。

我不知道我该怎么做了。 请帮助我,或指向我解决这些问题..

谢谢

很抱歉,如果有点乱,我的解释。

回答

0

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

+0

但我不能运行像eclipse(libgdx提供桌面和android项目)的桌面应用程序,任何想法做到这一点? – 2014-10-19 00:57:41

+0

抱歉不知道它... – 2014-10-20 04:46:13

0

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

+0

我已经试过这个。与该页面下方的其他评论相同,不能。 – 2014-10-19 00:52:17

1

你应该能够从你的主项目打开一个命令行并执行“gradlew eclipse”。一旦运行,您应该能够将其作为普通的现有项目导入到Eclipse中,因为Gradle将生成Eclipse所需的Eclipse相关项目文件,以识别和构建项目。