Google Maps does not display any tiles, works fine in developer device

前端 未结 1 681
轮回少年
轮回少年 2020-12-12 06:28

I developed an Android application with Google Maps. Maps work fine when I checked with my device, or even emulator. But when I delivered it to client he says only \"no tile

相关标签:
1条回答
  • 2020-12-12 06:58

    That's because you haven't got the right API KEY for the Google maps widget.

    When you sign the application, you have to use the same keystore and obtain an API key. You get the MD5 fingerprint of the keystore you are using to sign the application go here, http://code.google.com/android/maps-api-signup.html put the finger print and get the API key, then in your maps widget,

    <?xml version="1.0" encoding="utf-8"?>
        <com.google.android.maps.MapView
            android:id="@+id/mapView" android:layout_width="fill_parent"
            android:layout_height="fill_parent" android:apiKey="0G0LHKCCJvhmNvdpZijAqg76V63Cs6DTBbq2-Pw"
            android:enabled="true" android:clickable="true" />
    

    put the api_key

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