什么是 jar 文件包含 com.google.api.services.samples.youtube.cmdline.Auth 和 com.google.common.collect.Lists [英] what is jar file contains com.google.api.services.samples.youtube.cmdline.Auth and com.google.common.collect.Lists

查看:21
本文介绍了什么是 jar 文件包含 com.google.api.services.samples.youtube.cmdline.Auth 和 com.google.common.collect.Lists的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里尝试了代码 youtube api 示例:https://developers.google.com/youtube/v3/docs/captions/list#examples但我可以导入 com.google.api.services.samples.youtube.cmdline.Auth 和 com.google.common.collect.Lists.我从这里导入了所有 jar 文件:developers.google.com/api-client-library/java/apis/youtube/v3但我得到这样的错误在此处输入图片描述

i tried code youtube api example here: https://developers.google.com/youtube/v3/docs/captions/list#examples but i can import com.google.api.services.samples.youtube.cmdline.Auth and com.google.common.collect.Lists. i imported all jar file from here: developers.google. com/api-client-library/java/apis/youtube/v3 but i get error like thatenter image description here

推荐答案

见 thie SO entry 导入google.api.services.samples.youtube.cmdline.Auth;"时遇到问题?

See thie SO entry Having trouble importing "google.api.services.samples.youtube.cmdline.Auth;"?

您要查找的类可能不是标准 API 的一部分.但是你可以从这里从 Github 构建 JAR

The class that you're looking for is probably not part of the standard API. However you can build the JAR from the Github from here

https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/Auth.java

这篇关于什么是 jar 文件包含 com.google.api.services.samples.youtube.cmdline.Auth 和 com.google.common.collect.Lists的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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