android, google map errors: BaseTileRequest, Server returned: 3

不想你离开。 提交于 2019-11-28 13:12:56

I did run into this even though I followed everything said here.

Assuming that you did follow this link, here's how I solved the issue :

Long story :

Everything was working fine until I copied the whole project on another PC and imported it into Eclipse. This changes everything, because the API key you obtain is linked to the debug keystore on the machine that you used to generate the API key. Since I was running / debugging the android application on another machine (hence another debug keystore), the API key was invalid. So I had to generate a new API key as described below.

Short story :

If you are using another machine , generate a new API key, by computing the MD5 fingerprint as described here, and then generate the API key here using this MD5 fingerprint.

I've had this problem before, it could be caused by several things, checking these things usually solves it.

  1. Your map api key you use is wrong. Remember that this key is for each installation of Android, so if you have changed computer, you need to regenerate a new key. This is the most likely problem.

  2. If you are using eclipse, the java build path could be bugged/set-up wrong. I've found out that the google-maps import might need to be at top or close to it in the build path declaration in Eclipse.

when you are trying to get MD5 finger print, keytool command may return SH1 instead. In this case use "-v" after "keytool" command to have MD5 fingerprint as well

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!