【问题标题】:Installing GData API in Eclipse在 Eclipse 中安装 GData API
【发布时间】:2013-07-05 14:59:52
【问题描述】:

我正在尝试在 Android 应用程序中使用 Google Docs API。我可以找到大量关于 API 以及如何使用它的文档,但我似乎无法弄清楚如何将依赖项放入 Eclipse。我按照我在此处找到的说明进行操作:http://code.google.com/p/gdata-java-client-eclipse-plugin/wiki/Installation 并且无法安装 EMF。我安装了 Google 数据功能,现在似乎可以解决 com.google.gdata.data.* 和 com.google.gdata.util.* ,但我需要的大部分东西都在 com.google.gdata 。客户。* 。有人可以帮我弄清楚 Eclipse 吗?!我一直在网上搜索答案并在墙上撞了一个星期!谢谢大家!!!!

这是我在尝试安装 EMF 时在 Eclipse 中遇到的错误:

由于依赖项冲突,无法完成安装。

Software being installed: Eclipse Modeling Framework (EMF) - org.eclipse.emf.common 2.3.0.v200706262000 (org.eclipse.emf.common.feature.group 2.3.0.v200706262000)
  Software currently installed: Google Plugin for Eclipse 3.5 1.3.3.v201006111302 (com.google.gdt.eclipse.suite.e35.feature.feature.group 1.3.3.v201006111302)
  Only one of the following can be installed at once: 
    EMF Common 2.4.0.v200808251517 (org.eclipse.emf.common 2.4.0.v200808251517)
    EMF Common 2.4.0.v200902171115 (org.eclipse.emf.common 2.4.0.v200902171115)
    EMF Common 2.5.0.v200906151043 (org.eclipse.emf.common 2.5.0.v200906151043)
    EMF Common 2.2.2.v200808252119 (org.eclipse.emf.common 2.2.2.v200808252119)
  Cannot satisfy dependency:
    From: Google Core Plugin 1.3.3.v201006111302 (com.google.gdt.eclipse.core 1.3.3.v201006111302)
    To: bundle org.eclipse.wst.sse.ui 0.0.0
  Cannot satisfy dependency:
    From: Google Plugin for Eclipse 3.5 1.3.3.v201006111302 (com.google.gdt.eclipse.suite.e35.feature.feature.group 1.3.3.v201006111302)
    To: com.google.gdt.eclipse.core [1.3.3.v201006111302]
  Cannot satisfy dependency:
    From: Eclipse Modeling Framework (EMF) - org.eclipse.emf.common 2.3.0.v200706262000 (org.eclipse.emf.common.feature.group 2.3.0.v200706262000)
    To: org.eclipse.emf.common [2.3.0.v200706262000]
  Cannot satisfy dependency:
    From: Structured Source Editor 1.1.101.v200908261807 (org.eclipse.wst.sse.ui 1.1.101.v200908261807)
    To: bundle org.eclipse.emf.common [2.4.0,3.0.0)
  Cannot satisfy dependency:
    From: Structured Source Editor 1.1.102.v200910200227 (org.eclipse.wst.sse.ui 1.1.102.v200910200227)
    To: bundle org.eclipse.emf.common [2.4.0,3.0.0)

【问题讨论】:

    标签: android eclipse gdata


    【解决方案1】:

    为什么没有安装 EMF?您是否在可用软件列表中看到它?如果没有,请尝试手动为其添加更新站点;网址是:http://download.eclipse.org/modeling/emf/updates/releases/

    【讨论】:

    • 阿德里安,感谢您的帮助。您提供的链接提供了大量可能的下载,所以我不确定我应该下载什么。上面文档中的链接为我提供了 3 次下载、Google 数据功能、emf.codegen 和 emf.common。如果我尝试安装任何一个 emf,它会抱怨依赖项并且不会安装。
    【解决方案2】:

    感谢您的帮助,但我终于想通了。所有的说明都让您相信您应该将更新站点添加到 Eclipse 并允许它自动下载,但事实证明,我可以让它工作的唯一方法是从以下位置下载“示例”jar 文件:@987654321 @ 然后从 Project->Properties->Java Build Path->Libraries 导入到项目中。一旦我这样做了,Eclipse 就开始解析我试图调用的所有 gdata 方法。希望这对将来的人有所帮助!

    【讨论】:

      猜你喜欢
      • 2012-12-12
      • 2015-07-31
      • 2012-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-21
      • 1970-01-01
      相关资源
      最近更新 更多