我相信这是一个普遍的问题。甚至这个文档也指出了这一点: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