有关包括自动使用谷歌Eclipse插件和手动添加.jar文件的驱动器API库不同 [英] Different about including Drive API library between using Google Eclipse Plugin automatically and add .jar files manually

查看:258
本文介绍了有关包括自动使用谷歌Eclipse插件和手动添加.jar文件的驱动器API库不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用来添加谷歌云端硬盘API V2在我的项目通过使用谷歌Eclipse插件,它成功了。(自动)

I used to add Google Drive API v2 in my project by using Google Eclipse Plugin, it successful.(automatically)

但是当我通过下载的 google-api-services-drive-v2-rev89-java-1.15.0-rc.zip 位于驱动API 的索引,包括我的项目:添加到/库;在添加Java构建路径的jar;经过在订单和出口(手动)。

But when I add all libraries by downloading google-api-services-drive-v2-rev89-java-1.15.0-rc.zip at Drive API index, and including my project : Add into /libs; Add jar in Java Build Path; Checked in Order and Export (manually).

错误显示在这里:

进口com.google.api.client.http.GenericUrl;

进口com.google.api.client.http.Htt presponse;

(这意味着无法导入GenericUrl.java和Htt的presponse.java级)

以及错误

类型com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient不能得到解决。这是间接需要的.class文件中引用

(这意味着AbstractGoogleJsonClient不存在)

显示这里:
的Htt presponse RESP = service.getRequestFactory()
                        .buildGetRequest(新GenericUrl(file.getDownloadUrl()))
                        。执行();

请告诉我如何解决,

谢谢,

推荐答案

AbstractGoogleJsonClient 谷歌API的客户 - <版本取代。 JAR ,如果它没有发现有一个与你的类路径的一个根本问题。

AbstractGoogleJsonClient is in google-api-client-<version>.jar, there is a fundamental problem with your classpath if it's not found.

这篇关于有关包括自动使用谷歌Eclipse插件和手动添加.jar文件的驱动器API库不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆