简体   繁体   English

在Eclipse中安装ADT时出错:找不到存储库

[英]error installing ADT in Eclipse: no repository found

I'm trying to install ADT in Eclipse, using the instructions on developer.android.com, but I'm getting an error... 我正在尝试使用developer.android.com上的说明在Eclipse中安装ADT,但我收到错误...

What I did: I installed the android SDK with the recommended exe-installer (the r15-version). 我做了什么:我用推荐的exe-installer(r15版本)安装了android SDK。 I downloaded 2 platforms with it (Android 4.0 and 2.1). 我用它下载了2个平台(Android 4.0和2.1)。 Then I downloaded Eclipse Classic as recommended. 然后我按照推荐下载了Eclipse Classic。 I started Eclipse and added the plugin-repository. 我启动了Eclipse并添加了plugin-repository。 I get 4 packages from it, 3 of them I can install without problems, but the most important one (called "Android Development Tools" is throwing errors at me. 我从中获得了4个软件包,其中3个我可以毫无问题地安装,但最重要的一个(称为“Android开发工具”)给我带来了错误。

The error When I try to install that one, It will run for a long time, and during that time my internet connection is VERY slow, almost not working anymore. 错误当我尝试安装那个时,它会运行很长时间,在此期间我的互联网连接非常慢,几乎不再工作了。 After that I get the message that the installation failed, and in the details it says: 之后,我收到安装失败的消息,并在详细信息中说:

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

I tried googling the problem but all I found were answers related to Linux-systems, and I'm running Win7 (Home Premium SP1 64bit if that makes any difference...) 我试过谷歌搜索问题,但我找到的所有答案都与Linux系统有关,我正在运行Win7(Home Premium SP1 64bit,如果这有任何区别......)

I also tried using the repository-link with http instead of https, and also tried removing the repository and adding it back, but no luck with those actions either. 我也尝试使用带有http而不是https的存储库链接,并尝试删除存储库并将其添加回来,但这些操作也没有运气。

Can anybody help? 有人可以帮忙吗?

I was running into this same problem. 我遇到了同样的问题。 I finally checked and was using the https: Google server instead of http://dl-ssl.google.com/android/eclipse/ Switching the servers helped out. 我终于检查并使用https:Google服务器而不是http://dl-ssl.google.com/android/eclipse/切换服务器帮助了。 I found this in the troubleshooting section of installing-adt . 我在installation-adt的故障排除部分找到了这个。

when you install the window installer downloaded in step-2 it would be install in C:\\Program Files\\Android\\android-sdk 当您安装在步骤2中下载的窗口安装程序时,它将安装在C:\\ Program Files \\ Android \\ android-sdk中

see the image 看到图像 在此输入图像描述

then click on Apply 然后单击“应用”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM