Google日历API无法使用已签名的apk

时间:2016-01-22 07:51:25

标签: android google-api google-calendar-api

我正确地集成了Google Calendar api,并且在未签名的apk中也可以正常使用。 但是当我签署我的应用程序并尝试访问谷歌日历时,api返回错误。

Error com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
                                              {
                                                "code" : 403,
                                                "errors" : [ {
                                                  "domain" : "usageLimits",
                                                  "message" : "Access Not Configured. The API (Calendar API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
                                                  "reason" : "accessNotConfigured",
                                                  "extendedHelp" : "https://console.developers.google.com"
                                                } ],
                                                "message" : "Access Not Configured. The API (Calendar API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
                                              }

我还启用了Google Calendar api,CalDAV api。

所以,我只在签名的apk中面对这个。 unsigned是完美的工作。

那么,任何人都知道如何解决这个问题?

0 个答案:

没有答案