我尝试运行 quickstart-sample,以及此依赖项:
I tried running the quickstart-sample, and this dependency:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v2-rev78-1.15.0-rc</version>
</dependency>
来自 Drive wiki API 页面
然而,当我尝试编译代码时 com.google.api.client.json.jackson.JacksonFactory; 丢失了.
要验证这一点,您只需要执行第 2 步 &3!我在哪里可以找到这个类或如何在示例中替换它?
Yet when I try to compile the code com.google.api.client.json.jackson.JacksonFactory; is missing.
To verify this you just need to do Step 2 & 3! Where can I find this class or how can I replace it in the sample?
可以找到Jackson库在 http://repo2.maven.org/maven2/com/google/http-client/google-http-client-jackson/
Jackson library can be found at http://repo2.maven.org/maven2/com/google/http-client/google-http-client-jackson/
7 月 7 日,最新版本可通过 Maven 获取
For July 7, last version can be obtained by Maven
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson</artifactId>
<version>1.15.0-rc</version>
</dependency>
你可能还需要
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client-java6</artifactId>
<version>1.15.0-rc</version>
</dependency>
这篇关于com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
上传进度侦听器未触发(Google 驱动器 API)Upload progress listener not fired (Google drive API)(上传进度侦听器未触发(Google 驱动器 API))
使用 Google Drive SDK 将文件保存在特定文件夹中Save file in specific folder with Google Drive SDK(使用 Google Drive SDK 将文件保存在特定文件夹中)
Google Drive Android API - 无效的 DriveId 和 Null ResourcGoogle Drive Android API - Invalid DriveId and Null ResourceId(Google Drive Android API - 无效的 DriveId 和 Null ResourceId)
谷歌驱动api服务账户查看上传文件到谷歌驱动使Google drive api services account view uploaded files to google drive using java(谷歌驱动api服务账户查看上传文件到谷歌驱动使用java
Google Drive 服务帐号返回 403 usageLimitsGoogle Drive service account returns 403 usageLimits(Google Drive 服务帐号返回 403 usageLimits)
检查上传和进度下载(适用于 Android 或 Java 的 GoCheck progress for Upload amp; Download (Google Drive API for Android or Java)(检查上传和进度下载(适用于 Android 或 Java 的 Google Drive