0

Hi i am trying to implement GMail API in my android app to send mail in background. But i am getting a response like this. Even if I enabled Gmail API permission in my app.

{
      "code" : 403,
      "errors" : [ {
        "domain" : "usageLimits",
        "message" : "Access Not Configured. The API (Gmail 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 (Gmail API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
    }

I followed https://developers.google.com/gmail/api/quickstart/android for integrating.

Eric D
  • 6,901
  • 1
  • 15
  • 26
Nivedh
  • 971
  • 1
  • 8
  • 19
  • Access Not Configured. The API (Gmail API) is not enabled for your project. Please use the Google Developers Console to update your configuration. Have you checked in your google console? – justDroid Feb 10 '16 at 09:54
  • Did you get the screen for the app to request access to google(google Auth 2) – Psypher Feb 10 '16 at 09:54
  • @psy Yes i did. I gave the email id and fetch a list of Gmail labels attached to the specified account its showing this. – Nivedh Feb 10 '16 at 10:08
  • @Just I checked the console. Its enabled. – Nivedh Feb 10 '16 at 10:08
  • I am having exactly the same problem here. Have you found a solution yet? – John Yang Mar 06 '16 at 13:00
  • @JohnYang If you get the answer please let me know. – Nivedh Mar 07 '16 at 07:08
  • @Nivedh, Actually I got it working. One thing I did is just to compile with release configuration instead of debug. (i.e. signed apk). Or maybe it just takes few minutes for the server to set everything up correctly. And you have to make sure your SHA1 thing is correct on developer console. – John Yang Mar 07 '16 at 09:51
  • So if you are using the debug key, you have to use the relative SHA1 or if you use your own key, you have to build with release with correct SHA1 entered in developer console. – John Yang Mar 07 '16 at 11:38

0 Answers0