IP未获准在Direction API中使用API​​密钥

时间:2019-04-07 15:45:07

标签: android api maps

我正在通过this教程来学习Direction Api。我已启用Direction API,并且我的应用程序受到SHA-1指纹的限制。当我尝试查看折线时出现错误:

2019-04-07 17:09:42.991 29943-30014/com.example.directiontest D/mylog: Downloaded URL: {   "error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address //there is my ip address//, with empty referer",   "routes" : [],   "status" : "REQUEST_DENIED"}
2019-04-07 17:09:42.991 29943-30014/com.example.directiontest D/mylog: Background task data {   "error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address //there is my ip address//, with empty referer",   "routes" : [],   "status" : "REQUEST_DENIED"}
2019-04-07 17:09:42.994 29943-30016/com.example.directiontest D/mylog: {   "error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address //there is my ip address//, with empty referer",   "routes" : [],   "status" : "REQUEST_DENIED"}
2019-04-07 17:09:42.995 29943-30016/com.example.directiontest D/mylog: com.example.directiontest.DataParser@11a2659
2019-04-07 17:09:42.995 29943-30016/com.example.directiontest D/mylog: Executing routes
2019-04-07 17:09:42.995 29943-30016/com.example.directiontest D/mylog: []
2019-04-07 17:09:42.996 29943-29943/com.example.directiontest D/mylog: without Polylines drawn

0 个答案:

没有答案