Deploying the debug version of an app on the emulator gets me a
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"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."
}
Deploying the same debug apk on a physical device works OK.
What could explain the difference of behavior between the physical device and the emulator with regards to the Google APIs ?
EDIT
This seems to be an IntelliJ 14.1 related issue. deploying from the terminal using adb
to the emulator, fixes it. If I find out more, I will update this. Thanks for your contributions.