Google云端硬盘授权在Android SDK上返回错误403 usageLimits< 14

时间:2013-04-18 18:17:00

标签: android google-drive-api google-api-java-client

我在Android应用中使用Google Drive API:

private Drive buildService(final GoogleCredential credentials) {

        return new Drive.Builder(AndroidHttp.newCompatibleTransport(), new GsonFactory(), credentials)
                .build();

    }

使用accountManager获取凭证。它在Android 4.0及更高版本上运行良好。我可以获取/插入/删除文件等。在下面的Android 4.0上运行时,它总是返回:

"error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit Exceeded. Please sign up",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded. Please sign up"
 }
}

这是兼容性问题吗?我正在使用最新的Drive api和google api lib(1.14.1)。谢谢。

1 个答案:

答案 0 :(得分:0)

您应该在API控制台的服务标签上启用“Google Drive API”:https://code.google.com/apis/console/