Google Maps V2 shows blank screen on android 2.2

后端 未结 5 1557
别跟我提以往
别跟我提以往 2020-12-06 11:35

I tried following a tutorial on Android Maps V2 Quick Start But when I run the app, a blank map screen is shown. My phone uses android 2.2.1.

相关标签:
5条回答
  • 2020-12-06 11:51

    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

    0 讨论(0)
  • 2020-12-06 11:52

    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.

    0 讨论(0)
  • 2020-12-06 11:55

    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.

    0 讨论(0)
  • 2020-12-06 12:06

    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 :)

    0 讨论(0)
  • 2020-12-06 12:06

    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.

    0 讨论(0)
提交回复
热议问题