2

我正在尝试在 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)
4

2 回答 2

0

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

于 2010-10-11T02:59:04.937 回答
0

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

于 2010-10-06T13:55:45.050 回答