有关包括自动使用谷歌Eclipse插件和手动添加.jar文件的驱动器API库不同 [英] Different about including Drive API library between using Google Eclipse Plugin automatically and add .jar files manually
问题描述
我用来添加谷歌云端硬盘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屋!