在Eclipse中安装GData API

时间:2010-10-05 23:43:04

标签: android eclipse gdata

我正在尝试在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中.client。*。有人可以帮我弄清楚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)

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

感谢您的帮助,但我终于明白了。所有的说明都让你相信你应该将更新站点添加到Eclipse并允许它自动下载,但事实证明我能使其工作的唯一方法是从{{下载“samples”jar文件。 3}}然后从Project-> Properties-> Java Build Path-> Libraries将其导入项目。一旦我这样做,Eclipse就开始解析我试图调用的所有gdata方法。希望这将有助于将来的某个人!