可能重复:
Couldn't get connection factory client - fighting with Google Maps
我遇到mapview问题。我为我的应用创建了一个新的密钥库,并获得了谷歌地图api的正确密钥,我的应用程序是用我的密钥库签名的。但是mapview,不行。 我正在阅读很多关于它的帖子,但我无法解决它
我有一些错误:
07-20 18:16:49.066: I/MapActivity(9106): Handling network change notification:CONNECTED
07-20 18:16:49.066: E/MapActivity(9106): Couldn't get connection factory client
07-20 18:16:49.276: W/System.err(9106): IOException processing: 26
07-20 18:16:49.286: W/System.err(9106): java.io.IOException: Server returned: 3
07-20 18:16:49.296: W/System.err(9106): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
07-20 18:16:49.296: W/System.err(9106): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
07-20 18:16:49.296: W/System.err(9106): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
07-20 18:16:49.296: W/System.err(9106): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
07-20 18:16:49.296: W/System.err(9106): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
07-20 18:16:49.296: W/System.err(9106): at java.lang.Thread.run(Thread.java:856)
其他时间出现相同的错误但未显示在以下行中:
无法获得连接工厂客户端07-20 18:16:49.276:
我的mapview.xml:
<com.google.android.maps.MapView
android:id="@+id/mapa"
style="@style/mapView"
android:layout_width="fill_parent"
android:layout_height="200dip"
android:apiKey="@string/apikey"
android:clickable="true" >
</com.google.android.maps.MapView>
manifiest
..............................
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
>
<uses-library android:name="com.google.android.maps" />
..............................
我正在疯狂寻找解决方案,非常感谢您的帮助!
提前感谢!
答案 0 :(得分:0)
尝试将您的地图密钥直接放到
android:apiKey=""
并且您必须在模拟器上添加您的Google帐户
Setting --> Account&sync --> add account --> google
您的模拟器必须支持google api
享受