2011-10-29 131 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