【问题标题】:Unable to install Google APIs Eclipse Plugin无法安装 Google APIs Eclipse 插件
【发布时间】:2013-05-21 03:40:20
【问题描述】:

我正在尝试在 Eclipse v3.7 (Indigo) 上安装 Google APIs Eclipse 插件。我已经通过 Eclipse 的“安装新软件”功能从存档的本地副本(ZIP 文件)和在线尝试,但无法使其正常工作。相反,我不断收到这些消息:

出现多个问题:
“安装下载 0”期间发生内部错误。
安装下载0
安装下载0
安装下载1
安装下载2
安装下载2

点击更多信息会显示:

在“安装 download0”期间发生内部错误。
比较方法违反了它的一般约定!

错误日志说:

    Error closing the output stream for osgi.bundle,org.eclipse.m2e.maven.runtime,1.0.200.20111228-1245 on repository file:/C:/eclipse/.

    Stack trace:

    eclipse.buildId=I20110613-1736
    java.version=1.7.0_09
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
    Command-line arguments:  -os win32 -ws win32 -arch x86

    This is a continuation of log file C:\Users\Hiromi\workspace\.metadata\.bak_0.log
    Created Time: 2013-05-25 21:15:24.600

    Error
    Sat May 25 21:22:55 BST 2013
    Error closing the output stream for osgi.bundle,org.eclipse.m2e.maven.runtime,1.0.200.20111228-1245 on repository file:/C:/eclipse/.

    java.io.IOException: Error unzipping C:\Users\Hiromi\AppData\Local\Temp\org.eclipse.m2e.maven.runtime_1.0.200.20111228-12454266317341648757159.jar: Invalid zip file format
at org.eclipse.equinox.internal.p2.core.helpers.FileUtils.unzipFile(FileUtils.java:75)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository$ZippedFolderOutputStream.close(SimpleArtifactRepository.java:185)
at java.io.FilterOutputStream.close(Unknown Source)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository$ArtifactOutputStream.close(SimpleArtifactRepository.java:113)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:244)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:191)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:122)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:664)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

还有:

No repository found containing: osgi.bundle,com.ning.async-http-client,1.6.3.201112281337

和:

No repository found containing: osgi.bundle,org.jboss.netty,3.2.4.Final-201112281337

我 100% 确定我正在下载 Eclipse 3.7 版本的插件,并且互联网上列出的其他修复都没有帮助。非常感谢任何帮助,如果需要任何其他信息,我非常乐意提供 - 非常感谢!

【问题讨论】:

  • 您正在下载 App Engine 插件?
  • 不,这是用于 Android 开发的 Eclipse IDE 3.7 的插件。我需要 Google API 插件才能将 Google Drive 集成到我的应用程序中。除非使用 App Engine? (我认为不会)
  • 耶。有人说Comparison method violates its general contract!" 这种错误来自错误,如果您使用的是 JRE 7。如果您使用 JRE 6,则可能会解决问题。我不确定,但可能值得一试。
  • 谢谢,我可以试一试。我怎样才能安装 JRE 6 - 根据 Eclipse Preferences 我只有 JRE 7??
  • 我认为获取 JRE 6 的方法是卸载 JRE 7 并安装 JRE 6。或者你也可以只安装 JRE 6 然后让 eclipse 使用 JRE 6。我想我看到了关于这个的一些stackoverflow问题。

标签: android eclipse plugins google-api eclipse-indigo


【解决方案1】:

您必须下载 Android Development Bundle from here。 只需一次下载,ADT 捆绑包就包含了您开始开发应用程序所需的一切:

Eclipse + ADT 插件

Android SDK 工具

Android 平台工具

最新的安卓平台

模拟器的最新安卓系统镜像

【讨论】:

  • 感谢您的建议,但我已经安装了最新的 ADT。我正在尝试安装完全独立的 Google API 插件。有什么想法吗?
【解决方案2】:

你可以在属性->java编译器中设置java 6而不是7。

更新你的eclipse,我记得有同样的问题。为什么还要使用 3.7。

【讨论】:

    猜你喜欢
    • 2011-10-11
    • 2018-10-12
    • 1970-01-01
    • 1970-01-01
    • 2010-10-18
    • 2013-12-03
    • 2015-05-01
    • 2014-05-12
    • 2010-12-26
    相关资源
    最近更新 更多