适用于 Android 的 Google 数据 Java 客户端库
我想为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您要创建 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.
您好:我想您一定正在寻找以下内容。检查以下链接,您可能会找到相关课程。
http: //code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples
http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples#picasa-atom -android-sample/src/com/google/api/client/sample/picasa/model
Hello: I think you must be looking for the following. Check the following links and you might find related classes.
http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples
http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samples#picasa-atom-android-sample/src/com/google/api/client/sample/picasa/model