Google map not show any thing in map

前端 未结 3 2084
后悔当初
后悔当初 2020-12-18 10:20

i am showing a map in activity ... but when i run app on device it does not show any thing , it show just white screen and zoom in zoom out options... MAP key is right .. th

相关标签:
3条回答
  • 2020-12-18 10:58

    Use your main packet name for generate key.
    For example: im my project, google map v2 is in com.ftravelbook.googlemapv2 but when generate key, you must use your main packet name (com.ftravelbook) here are some screenshots:
    enter image description here enter image description here enter image description here

    0 讨论(0)
  • 2020-12-18 11:07

    Is your map API key for your debugbuilds or your release builds? The key is based on your keystore, which is different between your debug and release build. Your release key for google maps won't work if you're debugging your app, and vice versa.

    0 讨论(0)
  • 2020-12-18 11:16

    enter image description here

    I was also having the same problem because i have generated key by making on google maps api v2 on.It is used for web not for mobile.

    For android device you have to make a google maps android api v2 on and generate your key

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