我在通过 ApiKey 使用 Google urlshortener api 时收到此错误消息: (我使用相同的 API key 在同一个应用程序中显示 Google map ,没有任何问题) 我哪里做错了?
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden "code": 403, "errors": [ { "domain": "usageLimits", "message": "The Android package name and signing-certificate fingerprint, null and null, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions.", "reason": "ipRefererBlocked", "extendedHelp": "https://console.developers.google.com/apis/credentials?project=xxxx" } ],> "message": "The Android package name and signing-certificate fingerprint, null and null, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions."*
最佳答案
您必须使用浏览器键,而不是 android 键。
关于android - Google API key 在 google urlshortener api 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36952585/