1

我已经尽可能多地扫描了有关此的信息并遇到了这个

WARNING:Google Play services is required to compile and run this sample. It will launch soon. Please check on https://developers.google.com/android/google-play-services for more details. For now, we have provided a dummy google-play-services.jar that only compiles the sample but will not run correctly.

Android application registration: You first need to register your Android application and sign up for access to the Google Calendar API in the Google APIs Console. First, you need the "Signing certificate fingerprint (SHA1)" for the debug and release builds:

我想知道这是否可用,如果没有,我还有另一种方法可以有效地访问谷歌 API。此外,如果我能获得非常好的逐步资源来完成此任务,我将不胜感激。并且请下载的示例代码不起作用,我尝试了几次无济于事。最好坚持使用旧版本或使用客户端登录。

谢谢。

4

1 回答 1

2

遗憾的是,Google Play 服务API 尚不可用。您可以查看一些使用这些 API 的示例代码,但您将无法运行它们,因为您需要在手机上安装这些服务。

同时,您可以使用AccountManager检索匿名 OAuth 2.0 令牌,如本文所述;但请记住,使用此技术不适用于 Google Drive API,因为?key=不再支持查询参数。

于 2012-08-16T15:35:45.673 回答