com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少
我尝试运行 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>
相关文章