我在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)。谢谢。