2

I followed the all the steps in google and got the API KEY. But still I get this error. Device displays empty grid view.

 W/System.err(18012): IOException processing: 26 
W/System.err(18012): java.io.IOException: Server returned: 3
W/System.err(18012): at
android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(B    aseTileRequest.java:115) 
W/System.err(18012): at    android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResp    onseData(MapService.java:1473) 
W/System.err(18012): at    android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.proc    essDataRequest(DataRequestDispatcher.java:1117) 
W/System.err(18012): at    android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serv    iceRequests(DataRequestDispatcher.java:994) 
W/System.err(18012): at    android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$Disp    atcherServer.run(DataRequestDispatcher.java:1702)
W/System.err(18012): at java.lang.Thread.run(Thread.java:856) 

Below is how I generated the SHA1 key.

C:\Documents and Settings\user>keytool -list -v -keystore "C:\Documents and
Settings\user\.android\debug.keystore" -alias androiddebugkey -storepass and
roid -keypass android 
Alias name: androiddebugkey 
Creation date: Aug 20, 2013 
Entry type: PrivateKeyEntry 
Certificate chain length: 1 
Certificate[1]: 
Owner: CN=Android Debug, O=Android, C=US 
Issuer: CN=Android Debug, O=Android, C=US 
Serial number: 1db18033 
Valid from: Tue Aug 20 14:50:55 SGT 2013 until: Thu Aug 13 14:50:55 SGT 2043 
Certificate fingerprints: 
     MD5:  85:71:83:F5:CB:82:55:A3:FF:C2:B0:6D:44:5F:95:C4 
     SHA1: A4:18:42:37:D2:2C:44:D3:01:C8:F4:C4:F2:8E:0A:78:3A:0B:9A:C4 
     Signature algorithm name: SHA256withRSA 
     Version: 3 

Extensions: 
#1: ObjectId: 2.5.29.14 Criticality=false 
SubjectKeyIdentifier [ 
KeyIdentifier [
0000: B1 11 13 61 8B 56 27 1C   C1 4F 15 B7 4A E0 FB 2C  ...a.V'..O..J..,
0010: 47 CD 81 82                                        G...
]
]

I add the key to AndroidManifest.xml below.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.comp.android.framework.service"
android:versionCode="1"
android:versionName="1.0" >
<permission
    android:name="com.comp.android.
framework.service.gis.activty.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="com.comp.android.framework.service.gis.activty.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />

<uses-feature android:glEsVersion="0x00020000" android:required="true"/>

<uses-sdk
    android:minSdkVersion="16"
    android:targetSdkVersion="18" />

<instrumentation
    android:name="android.test.InstrumentationTestRunner"
    android:label="LocationTracker"
    android:targetPackage="com.comp.android.framework.service" >
</instrumentation>

<application
    android:allowBackup="false"
    android:icon="@drawable/ic_launcher" >
    <uses-library android:name="com.google.android.maps" />
    <meta-data    android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyC0ysmCRlgo3Y20-yQCTb6qJ-xZ4GZ5LIc"/>

    <activity
        android:name="com.comp.android.framework.service.gis.activity.AndroidMapActivity"
        android:label="@string/title_activity_android_map" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity> 

</application>

</manifest>

Also Google API KEY added to main.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.maps.MapView android:id="@+id/mapview" 
android:layout_width="fill_parent" android:layout_height="fill_parent" 
android:enabled="true" android:clickable="true" android:apiKey="AIzaSyC0ysmCRlgo3Y20-yQCTb6qJ-xZ4GZ5LIc" /> 
</LinearLayout>



I Tried in google but everywhere it says the API key is the problem. But I followed the steps properly. I see only a grid on the device. How can I isolate where the issue is? It doesn't say even the key is wrong by google. It should at least connect to google and should validate the key.

4

0 回答 0