what is jar file contains com.google.api.services.samples.youtube.cmdline.Auth and com.google.common.collect.Lists

若如初见. 提交于 2019-12-11 13:44:19

问题


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


回答1:


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

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



来源:https://stackoverflow.com/questions/36876297/what-is-jar-file-contains-com-google-api-services-samples-youtube-cmdline-auth-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!