2011-10-29 134 views
3

我想在Eclipse安裝ADT,使用上developer.android.com的指示,但我發現了一個錯誤......錯誤在Eclipse安裝ADT:沒有存儲庫中找到

我做的事: 我使用推薦的exe安裝程序(r15版本)安裝了android SDK。我下載了2個平臺(Android 4.0和2.1)。 然後我按照推薦下載了Eclipse Classic。我啓動了Eclipse並添加了插件庫。我從它那裏得到4包,其中3我可以安裝沒有問題,但最重要的一個(被稱爲「Android開發工具」在我拋出的錯誤。

錯誤 當我試圖安裝一個,它會很長一段時間運行,在此期間我的互聯網連接速度很慢,幾乎不工作了之後,我得到的消息是,安裝失敗,並在細節上,它說:

An error occurred while collecting items to be installed 
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). 
No repository found containing: osgi.bundle,javax.xml,1.3.4.v201005080400 
No repository found containing: osgi.bundle,org.apache.lucene.highlighter,2.9.1.v20100421-0704 
No repository found containing: osgi.bundle,org.apache.lucene.memory,2.9.1.v20100421-0704 
No repository found containing: osgi.bundle,org.apache.lucene.misc,2.9.1.v20100421-0704 
No repository found containing: osgi.bundle,org.apache.lucene.queries,2.9.1.v20100421-0704 
No repository found containing: osgi.bundle,org.apache.lucene.snowball,2.9.1.v20100421-0704 
No repository found containing: osgi.bundle,org.apache.lucene.spellchecker,2.9.1.v20100421-0704 
No repository found containing: osgi.bundle,org.apache.xerces,2.9.0.v201101211617 
No repository found containing: osgi.bundle,org.apache.xml.resolver,1.2.0.v201005080400 
No repository found containing: osgi.bundle,org.apache.xml.serializer,2.7.1.v201005080400 
No repository found containing: osgi.bundle,org.eclipse.emf.common,2.7.0.v20110912-0920 
No repository found containing: osgi.bundle,org.eclipse.emf.ecore,2.7.0.v20110912-0920 
No repository found containing: osgi.bundle,org.eclipse.emf.ecore.change,2.7.1.v20110829-1916 
No repository found containing: osgi.bundle,org.eclipse.emf.ecore.xmi,2.7.0.v20110520-1406 
No repository found containing: osgi.bundle,org.eclipse.emf.edit,2.7.1.v20110913-1526 
No repository found containing: osgi.bundle,org.eclipse.jem.util,2.1.100.v201103021400 
No repository found containing: osgi.bundle,org.eclipse.wst.common.core,1.2.0.v200908252030 
No repository found containing: osgi.bundle,org.eclipse.wst.common.emf,1.2.100.v201101101900 
No repository found containing: osgi.bundle,org.eclipse.wst.common.emfworkbench.integration,1.2.101.v201107140600 
No repository found containing: osgi.bundle,org.eclipse.wst.common.environment,1.0.400.v200912181832 
No repository found containing: osgi.bundle,org.eclipse.wst.common.frameworks,1.2.101.v201107192200 
No repository found containing: osgi.bundle,org.eclipse.wst.common.project.facet.core,1.4.200.v201103170332 
No repository found containing: osgi.bundle,org.eclipse.wst.common.ui,1.1.500.v200911190730 
No repository found containing: osgi.bundle,org.eclipse.wst.common.uriresolver,1.1.401.v201004280700 
No repository found containing: osgi.bundle,org.eclipse.wst.sse.core,1.1.601.v201108151912 
No repository found containing: osgi.bundle,org.eclipse.wst.sse.ui,1.3.1.v201108191312 
No repository found containing: osgi.bundle,org.eclipse.wst.validation,1.2.302.v201107140600 
No repository found containing: osgi.bundle,org.eclipse.wst.xml.core,1.1.601.v201108302147 
No repository found containing: osgi.bundle,org.eclipse.wst.xml.ui,1.1.201.v201108151912 

我試着用google搜索這個問題,但是我發現的所有答案都與Linux系統有關,並且我運行的是Win7(家庭高級版SP1 64位,如果這有什麼區別的話......)

我也嘗試使用存儲庫鏈接與http而不是https,也嘗試刪除存儲庫並將其添加回來,但沒有運氣與這些行動之一。

任何人都可以幫忙嗎?

+0

請參閱如何在窗口7中逐步設置Android開發工具http://androidlearningbegin.blogspot.com/2011/10/android-first-program-helloworld-step.html的鏈接。 – Sunny

+0

感謝鏈接!我可以從Google下載ADT-zip文件,以便現在應該更好一點。但有一個問題:在第7步中,它告訴我瀏覽到SDK文件夾,但我找不到應該指向該文件夾的輸入字段。你能幫我一下嗎? – user1020014

回答

1

當您安裝在步驟2中下載的窗口安裝程序會在C安裝:\ Program Files文件\的Android \ Android的SDK

看到圖像enter image description here

然後單擊應用

+0

謝謝陽光! SDK在「C:\ Program Files(x86)\ Android」中安裝在我的電腦上。奇怪的是,我沒有在名爲「Android」的首選項屏幕中顯示antry,所以此輸入字段也不可用。我錯過了什麼嗎? – user1020014

+0

確定,然後首先嚐試安裝ADT插件的第9步,然後轉到窗口--->在Eclipse中的首選項,你會看到上面的圖像。 – Sunny

+0

,然後按照圖中所示瀏覽android目錄,然後點擊應用 – Sunny

4

我遇到了同樣的問題。我終於檢查並使用https:Google服務器而不是http://dl-ssl.google.com/android/eclipse/ 切換服務器。我在installing-adt的故障排除部分找到了這個。

+1

對我來說,這是相反的。我使用http,切換到https和它的工作。 – Niels

+0

這也解決了我的問題。 – andreapier

+0

對於我切換到http工作。 – Yar