Google API密钥在Google urlshortener API上失败



当ApiKey使用Google urlshortener api时,我收到了以下错误消息:(我使用相同的API密钥在相同的应用程序中显示谷歌地图,没有任何问题)我哪里做错了?

com.google.api.client.googleapis.json.GoogleJson响应异常:403被禁止的"代码":403,"错误":[{"域":"usageLimits","message":"Android软件包名称和签名证书指纹,null和null,与应用程序限制不匹配在API密钥上配置。请使用API控制台更新您的关键限制。","原因":"ipRefererBlocked","extendedHelp":"https://console.developers.google.com/apis/credentials?project=xxxx"}],>"message":"Android软件包名称和签名证书指纹,null和null,与应用程序限制不匹配在API密钥上配置。请使用API控制台更新您的关键限制。"*

您必须使用Browser键,而不是android键。

最新更新