我正确地集成了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是完美的工作。
那么,任何人都知道如何解决这个问题?