1

我已经注册了 Google maps api vesrion 1。我有一个以前可以正常工作的密钥,但现在它无法正常工作。在官方网站上他们说使用谷歌地图版本1的应用程序将继续工作,但建议不要使用它。

那么为什么我的应用程序现在不能工作......我没有对代码进行任何更改......这是我的log cat.

04-04 16:37:26.701: W/MapActivity(873): Recycling dispatcher android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher@411fc5b0
04-04 16:37:26.801: V/MapActivity(873): Recycling map object.
04-04 16:37:27.321: I/MapActivity(873): Handling network change notification:CONNECTED
04-04 16:37:27.321: E/MapActivity(873): Couldn't get connection factory client
04-04 16:37:32.590: W/System.err(873): IOException processing: 26
04-04 16:37:32.590: W/System.err(873): java.io.IOException: Server returned: 3
04-04 16:37:32.641: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
04-04 16:37:32.641: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
04-04 16:37:32.641: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
04-04 16:37:32.641: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
04-04 16:37:32.641: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
04-04 16:37:32.641: W/System.err(873):  at java.lang.Thread.run(Thread.java:856)
04-04 16:37:38.341: W/System.err(873): IOException processing: 26
04-04 16:37:38.341: W/System.err(873): java.io.IOException: Server returned: 3
04-04 16:37:38.415: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
04-04 16:37:38.415: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
04-04 16:37:38.415: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
04-04 16:37:38.421: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
04-04 16:37:38.421: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
04-04 16:37:38.421: W/System.err(873):  at java.lang.Thread.run(Thread.java:856)
04-04 16:37:45.323: W/System.err(873): IOException processing: 26
04-04 16:37:45.323: W/System.err(873): java.io.IOException: Server returned: 3
04-04 16:37:45.323: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
04-04 16:37:45.331: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
04-04 16:37:45.331: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
04-04 16:37:45.331: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
04-04 16:37:45.331: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
04-04 16:37:45.331: W/System.err(873):  at java.lang.Thread.run(Thread.java:856)
04-04 16:37:51.241: I/Choreographer(873): Skipped 34 frames!  The application may be doing too much work on its main thread.
04-04 16:37:53.021: W/System.err(873): java.lang.IllegalStateException: Connection pool shut down.
04-04 16:37:53.021: W/System.err(873):  at org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:284)
04-04 16:37:53.030: W/System.err(873):  at org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry(ConnPoolByRoute.java:238)
04-04 16:37:53.030: W/System.err(873):  at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection(ThreadSafeClientConnManager.java:176)
04-04 16:37:53.030: W/System.err(873):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:326)
04-04 16:37:53.114: W/System.err(873):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
04-04 16:37:53.114: W/System.err(873):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
04-04 16:37:53.114: W/System.err(873):  at android_maps_conflict_avoidance.com.google.common.io.android.AndroidHttpClient.execute(AndroidHttpClient.java:246)
04-04 16:37:53.114: W/System.err(873):  at android_maps_conflict_avoidance.com.google.common.io.android.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:129)
04-04 16:37:53.170: W/System.err(873):  at android_maps_conflict_avoidance.com.google.common.io.android.GoogleHttpClient.execute(GoogleHttpClient.java:189)
04-04 16:37:53.200: W/System.err(873):  at android_maps_conflict_avoidance.com.google.common.io.android.GoogleHttpClient.execute(GoogleHttpClient.java:242)
04-04 16:37:53.200: W/System.err(873):  at android_maps_conflict_avoidance.com.google.common.io.android.AndroidHttpConnectionFactory$AndroidGoogleHttpConnection.getResponse(AndroidHttpConnectionFactory.java:132)
04-04 16:37:53.280: W/System.err(873):  at android_maps_conflict_avoidance.com.google.common.io.android.AndroidHttpConnectionFactory$AndroidGoogleHttpConnection.openDataInputStream(AndroidHttpConnectionFactory.java:153)
04-04 16:37:53.280: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:922)
04-04 16:37:53.280: W/System.err(873):  at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
04-04 16:37:53.280: W/System.err(873):  at java.lang.Thread.run(Thread.java:856)

这是我的布局

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >


<TextView
    android:id="@+id/tv"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:text="@string/hello_world"
    tools:context=".MainActivity" />    

<com.google.android.maps.MapView
    android:id="@+id/pooja"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_alignParentTop="true"
    android:apiKey="I've used my Key here!!"
    android:clickable="true" />

4

0 回答 0