Android “Hello, MapView” Tutorial - Map Tiles Do Not Load

后端 未结 10 2112
难免孤独
难免孤独 2020-12-02 00:04

I am new to Android software development and new to this site. I am hoping someone might have some experience with the problem I am having.

I\'ve been following the

相关标签:
10条回答
  • 2020-12-02 00:18

    Another problem could be a proxy that you are behind. The proxy slows things down a lot and it will effect your app even though the maps app and internet browser in the emulator work fine.

    0 讨论(0)
  • 2020-12-02 00:26

    I am guessing the issue is not that you have an incorrect map key, but that you do not have the proper keystore setup. The application needs to be signed by the same keystore you used to generate the map key. You've noted that you can get it to work when you sign the application yourself, but you need to setup a debug keystore in order to use the Maps API with regular Eclipse builds.

    All Eclipse builds require a debug keystore; you just normally don't notice it because ADT generates one for you automatically. You should either follow the directions here and create your own debug keystore, or you should take the debug key that ADT automatically created for you (it'll show you where it created it in Windows > Preferences > Android > Build) and sign up for another Maps API key. That key will work with Eclipse.

    (P.S., this does make it a hassle to compile for release, as you need to switch your key back and forth depending on the signing keystore.)

    0 讨论(0)
  • 2020-12-02 00:31

    This is old question, but here is one more answer: if you are as hasty as me, you might accidentally copy the finger print code instead of API key from the web page :)

    0 讨论(0)
  • 2020-12-02 00:32

    Make sure you have 3g on the top panel. If you don't then there is no internet connection. Sometimes I have to turn the emulator on and off a couple of times to get 3g to come up.

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