com.google.api.client.json.jackson.JacksonFactory;Google Dri

com.google.api.client.json.jackson.JacksonFactory; missing in Google Drive example(com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少)
本文介绍了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>

这篇关于com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Reliable implementation of PBKDF2-HMAC-SHA256 for JAVA(PBKDF2-HMAC-SHA256 for JAVA 的可靠实现)
Correct way to sign and verify signature using bouncycastle(使用 bouncycastle 签名和验证签名的正确方法)
Creating RSA Public Key From String(从字符串创建 RSA 公钥)
Why java.security.NoSuchProviderException No such provider: BC?(为什么 java.security.NoSuchProviderException 没有这样的提供者:BC?)
Generating X509 Certificate using Bouncy Castle Java(使用 Bouncy Castle Java 生成 X509 证书)
How can I get a PublicKey object from EC public key bytes?(如何从 EC 公钥字节中获取 PublicKey 对象?)