【问题标题】:Error When Update Eclipse with Grandle使用 Gradle 更新 Eclipse 时出错
【发布时间】:2014-10-18 00:19:38
【问题描述】:

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

JDK 7 JRE 7

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

搜索后必须在eclipse中额外添加插件

我尝试通过“安装新软件”来使用 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/ 这说我必须在我的 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 还是不行。

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

谢谢

对不起,如果我的解释有点混乱。

【问题讨论】:

    标签: android eclipse libgdx


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • 但是我不能像使用 eclipse 一样运行桌面应用程序(libgdx 提供桌面和 android 项目),有什么想法吗?
      【解决方案3】:

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

      【讨论】:

      • 我已经尝试过了。与该页面下方的其他评论相同,不能。
      猜你喜欢
      • 2017-05-29
      • 2014-07-08
      • 1970-01-01
      • 1970-01-01
      • 2014-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多