Google Maps V2 shows blank screen on android 2.2

最后都变了- 提交于 2019-11-27 23:43:11

I finally found out what the problem was. I was picking the wrong debug keystore. I am working with an ubuntu machine. Since I opened eclipse as root, the default keystore in eclipse was located in my root folder(/root/.android/.android/debug.keystore) whiles I was creating the api key with the debug keystore from my user folder. I created a new api key with the debug keystore in the root folder and it works now.

make sure that you enable the Google Maps Android API v2 service in the https://code.google.com/apis/console

  1. Go to you https://code.google.com/apis/console-> services tab
  2. Make sure Google Maps Android API v2 is ON
  3. Go to API Access tab
  4. Create again a new Android key

Then you're good to go :)

I was mucking around with this stuff for ages as well (certificates, package names, API console etc.) and nothing worked until I tried uninstalling the app from my device, then re-installing it and suddenly it was fine.

I had the same problem but solved it like that. Might be helpful if the above answer doesn't work for you. After I changed my app's package name, map starts not to show up. (it happened after I changed my package name)

  1. Delete the keystore file that you used for previous package
  2. Create a new keystore file
  3. Get SHA1 fingerprint
  4. Go to API Console
  5. Create a new Android App.
  6. Paste your fingerprint
  7. Use the given API Key in your Manifest File

That worked for me

I had the same issue and the solution was to delete the debug.keystore. Then i did an adb uninstall com.example.myapp Then clean and run the application again.

I think the problem was due to the fact that i copied and pasted in my manifest a dummy API key and I first deployed the application with it.

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