2014-10-17 58 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相關項目文件,以識別和構建項目。