我在MapView
中创建了简单的android
示例,但它未在模拟器中显示任何内容
Logcat Datails是:
01-30 10:24:53.976: W/System.err(1033): IOException processing: 26
01-30 10:24:53.983: W/System.err(1033): java.io.IOException: Server returned: 3
01-30 10:24:54.003: W/System.err(1033): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
01-30 10:24:54.020: W/System.err(1033): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
01-30 10:24:54.022: W/System.err(1033): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
01-30 10:24:54.022: W/System.err(1033): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
01-30 10:24:54.022: W/System.err(1033): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
01-30 10:24:54.032: W/System.err(1033): at java.lang.Thread.run(Thread.java:856)
01-30 10:24:54.263: W/Trace(1033): Unexpected value from nativeGetEnabledTags: 0
01-30 10:24:54.263: W/Trace(1033): Unexpected value from nativeGetEnabledTags: 0
01-30 10:24:54.343: W/Trace(1033): Unexpected value from nativeGetEnabledTags: 0
答案 0 :(得分:0)
我认为地图API密钥错误。尝试重新生成密钥:
https://developers.google.com/maps/documentation/android/v1/mapkey