我已经阅读了很多解决此错误的答案,例如使用 browser key 而不是 android key 但它们都不起作用。
我已经在我的开发者控制台上打开了 YouTube Data API v3
,并且我已经为 android 生成了一个 API key 。
这是示例网址:
它返回这个错误:
{
error: {
errors: [
{
domain: "usageLimits",
reason: "accessNotConfigured",
message: "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
code: 403,
message: "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
我已经激活了 API,但它一直告诉我要激活它。我该怎么办?
在我的开发者控制台的项目 ListView 中,这个项目已经有 10 个请求和 10 个错误。
错误显示“请使用 Google Developers Console 为您的项目激活 API。”,这是否意味着我需要在打开 API 后在开发者控制台上发布/执行一些设置在 Google API 控制台中?
感谢您的帮助。
最佳答案
我认为 Google 的系统中存在错误。
我需要使用浏览器应用 key 而不是安卓 key 。
这还不够,我需要打开旧控制台,是的只需打开:
https://code.google.com/apis/console/b/0/?noredirect
有趣的部分是,我不需要做任何事情,只需打开那个旧控制台...即使生成的 key 是相同的,所以基本上应该没有问题。浪费我的时间真是太有趣了,希望这对你有帮助。
关于android - Youtube API v3 总是返回错误 403 (accessNotConfigured),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23740251/