适用于 Android 的 Google 数据 Java 客户端库

发布于 2024-10-20 05:21:34 字数 1154 浏览 4 评论 0原文

我想为 Android 制作一个 YouTube 客户端应用程序。我试图遵循this 所以我需要导入这些:

import com.google.api.client.googleapis .GoogleHeaders;
导入 com.google.api.client.googleapis.GoogleTransport;
导入 com.google.api.client.http.HttpRequest;
导入 com.google.api.client.http.HttpResponse;
导入 com.google.api.client.http.HttpResponseException;
导入 com.google.api.client.http.HttpTransport;
导入 com.google.api.client.http.InputStreamContent;
导入 com.google.api.client.sample.picasa.model.AlbumEntry;
导入 com.google.api.client.sample.picasa.model.PicasaUrl;
导入 com.google.api.client.sample.picasa.model.UserFeed;
导入 com.google.api.client.sample.picasa.model.Util;

导入 com.google.api.client.util.DateTime;
导入 com.google.api.client.xml.atom.AtomParser;

我使用 Eclipse IDE 并安装了 google-api-java-client-1.3.1-alpha.zip 作为参考库。 但粗体导入语句仍然显示错误。如何解决这个问题?

感谢您的帮助。

I want to make a youtube client app for android. I was trying to follow this So I need to import these:

import com.google.api.client.googleapis.GoogleHeaders;
import com.google.api.client.googleapis.GoogleTransport;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpResponse;
import com.google.api.client.http.HttpResponseException;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.InputStreamContent;
import com.google.api.client.sample.picasa.model.AlbumEntry;
import com.google.api.client.sample.picasa.model.PicasaUrl;
import com.google.api.client.sample.picasa.model.UserFeed;
import com.google.api.client.sample.picasa.model.Util;

import com.google.api.client.util.DateTime;
import com.google.api.client.xml.atom.AtomParser;

I am using Eclipse IDE and installed the google-api-java-client-1.3.1-alpha.zip as Reference Libraries.
But it is still showing error on the Bold import statements. How to resolve that?

Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

饮惑 2024-10-27 05:21:34

如果您要创建 YouTube 客户端,我怀疑您是否需要这些课程。如果您查看软件包名称,它们适用于 Picasa,而不是 YouTube。

I doubt that you need those classes if you are creating a YouTube client. If you look at the package name, they are for Picasa, which is not YouTube.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文