Search code examples
androidgoogle-mapsgoogle-maps-api-3google-apigoogle-maps-api-2

Non of the google map api key works for me


I used both keys with debug.keystore and custom keystore but just grids are getting displayed on my map

this is my log output on starting map activity

01-06 17:14:38.475: W/System.err(4391): IOException processing: 26
01-06 17:14:38.475: W/System.err(4391): java.io.IOException: Server returned: 3
01-06 17:14:38.482: W/System.err(4391):at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
    01-06 17:14:38.482: W/System.err(4391):at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
    01-06 17:14:38.482: W/System.err(4391):at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
    01-06 17:14:38.482: W/System.err(4391):at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
                                                at java.lang.Thread.run(Thread.java:1019)

Solution

  • Declare this in activity tag

    <activity ....... >
            ...
            ...
            <meta-data android:name="com.google.android.maps.v2.API_KEY"
                    android:value="your_api_key"/>
    </activity>