【问题标题】:error installing ADT in Eclipse: no repository found在 Eclipse 中安装 ADT 时出错:找不到存储库
【发布时间】:2011-10-29 18:39:47
【问题描述】:

我正在尝试使用 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

我尝试用谷歌搜索这个问题,但我发现的只是与 Linux 系统相关的答案,而且我正在运行 Win7(如果这有什么不同的话,Home Premium SP1 64bit...)

我还尝试使用带有 http 而不是 https 的存储库链接,还尝试删除存储库并将其添加回来,但这些操作也没有运气。

有人可以帮忙吗?

【问题讨论】:

  • 在window 7中查看如何逐步设置android开发工具androidlearningbegin.blogspot.com/2011/10/…的链接。
  • 感谢您的链接!我可以从 Google 下载 ADT-zipfile,这样现在应该会更好一些。但是有一个问题:在第 7 步中,它告诉我浏览到 SDK 文件夹,但我找不到应该指向该文件夹的输入字段。你能帮我吗?

标签: android eclipse installation


【解决方案1】:

我遇到了同样的问题。我终于检查并使用了 https: Google 服务器而不是 http://dl-ssl.google.com/android/eclipse/ 切换服务器有所帮助。我在installing-adt 的疑难解答部分找到了这个。

【讨论】:

  • 对我来说恰恰相反。我使用的是 http,切换到 https 并且可以正常工作。
【解决方案2】:

当您安装在步骤 2 中下载的窗口安装程序时,它将安装在 C:\Program Files\Android\android-sdk 中

查看图片

然后点击应用

【讨论】:

  • 谢谢晴天! SDK 自行安装在我的计算机上的“C:\Program Files (x86)\Android”中。奇怪的是我在首选项屏幕中没有一个名为“Android”的antry,所以这个输入字段也不可用。我错过了什么吗?
  • ok 然后先尝试安装ADT-plug-in step-9 然后到window--->preference in eclipse就可以看到上图了。
  • 然后浏览如图所示的android目录并点击应用
  • 最好下载eclipse最新版本。
  • Sunny,你绝对是最棒的!不知道我上次做错了什么,但突然之间它开始起作用了!我认为 SDK-zipfile 的下载起到了作用,而不是从谷歌本身的教程中提供的地址获取它。
猜你喜欢
  • 1970-01-01
  • 2012-03-18
  • 2012-10-30
  • 1970-01-01
  • 2013-06-07
  • 2023-03-12
  • 1970-01-01
  • 2011-06-19
  • 1970-01-01
相关资源
最近更新 更多