【问题标题】:Google Tasks API from Android - Access Not Configured来自 Android 的 Google Tasks API - 访问未配置
【发布时间】:2013-11-06 07:27:17
【问题描述】:

我相信这是一个常见的问题。甚至这个文档也指出了这一点:http://samples.google-api-java-client.googlecode.com/hg/tasks-android-sample/instructions.html

我在这里为我的 Android 应用创建了一个项目:https://cloud.google.com/console/start/api?id=tasks 并打开了 Tasks API。在 Android 项目中,我设置了 SHA1 密钥和我的包的名称 (:com.gruszczy.eisenhower)。 AndroidManifest.xml 中包含相同的包名。然而,当我尝试运行我的应用程序时,出现以下错误。有谁知道,我缺少什么或如何以某种方式调试它?

11-05 23:21:43.841    6060-6093/com.gruszczy.eisenhower W/System.err﹕ com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
11-05 23:21:43.841    6060-6093/com.gruszczy.eisenhower W/System.err﹕ {
11-05 23:21:43.841    6060-6093/com.gruszczy.eisenhower W/System.err﹕ "code": 403,
11-05 23:21:43.841    6060-6093/com.gruszczy.eisenhower W/System.err﹕ "errors": [
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ {
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ "domain": "usageLimits",
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ "message": "Access Not Configured",
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ "reason": "accessNotConfigured"
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ }
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ ],
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ "message": "Access Not Configured"
11-05 23:21:43.849    6060-6093/com.gruszczy.eisenhower W/System.err﹕ }
11-05 23:21:43.857    6060-6093/com.gruszczy.eisenhower W/System.err﹕ at com.googl

【问题讨论】:

    标签: android google-tasks-api


    【解决方案1】:

    我已删除该项目并重新创建了几次。在某一时刻,它开始工作。我想一定是暂时的侥幸。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-08
      • 2012-12-25
      • 2015-08-13
      • 2014-01-22
      • 2012-12-30
      • 1970-01-01
      • 2012-06-12
      • 1970-01-01
      相关资源
      最近更新 更多