如何将Gmail Api集成到Android应用中 [英] How to integrate Gmail Api in android app

查看:86
本文介绍了如何将Gmail Api集成到Android应用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已尝试使用以下教程将Gmail Api集成到我的android应用中 https://developers.google.com/gmail/api/quickstart/android#step_5_setup_the_sample

I have tried to integrate Gmail Api in my android app using the follwing tutorial https://developers.google.com/gmail/api/quickstart/android#step_5_setup_the_sample

我遵循了所有步骤,但是当我尝试测试gmail api

I followed every steps , but when i tried to test gmail api

发生以下错误:

  403 Forbidden
  {
   "code" : 403,
   "errors" : [ {
   "domain" : "usageLimits",
   "message" : "Access Not Configured. Gmail API has not been used in project 608941808256 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail/overview?project=608941808256 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
   "reason" : "accessNotConfigured",
   "extendedHelp" : "https://console.developers.google.com/apis/api/gmail/overview?project=608941808256"
   } ],
   "message" : "Access Not Configured. Gmail API has not been used in project 608941808256 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail/overview?project=608941808256 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
   } 

我也启用了Gmail Api和Google plus Api.问题仍然存在

I have enabled Gmail Api and Google plus Api too . still the problem exist

我的开发者控制台页面

推荐答案

我注册了androiddebug的SHA1密钥(debug.keystore)和签名发布版本的密钥(您自己的密钥库),创建了两个OAuth 2.0客户端ID .这使我可以测试我的应用程序. 请记住,有时更改需要花费几个小时才能体现出来.

I registered the SHA1 key for the androiddebug (debug.keystore) and the key for the signed-release version (your own keystore) creating two OAuth 2.0 client IDs. This allowed me to test my app. Remember that sometimes the changes take a few hours to be reflected.

这篇关于如何将Gmail Api集成到Android应用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆