简体   繁体   English

使用googlemaps的Monodroid 4.0上的错误

[英]Errors on Monodroid 4.0 using googlemaps

I'm trying to run the samples of xamarin about googlemaps, and the MapsDemo sample doesnt work. 我正在尝试运行关于googlemaps的xamarin样本,而且MapsDemo示例不起作用。 I'm trying to run on the Google APIs (Google Inc.) - API Level 8 emulator, it throws me this error: Couldn't get connection factory client, and when im trying to run onGoogle APIs (Google Inc.) - API Level 10 emulator: 我正在尝试运行Google API(Google Inc.) - API Level 8模拟器,它引发了我的错误:无法获取连接工厂客户端,以及当我尝试在Google API上运行时(Google Inc.) - API 10级模拟器:

W/System.err( 555): IOException processing: 26 W/System.err( 555): java.io.IOException: Server returned: 3 W/System.err( 555): at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115) W/System.err( 555): at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473) W/System.err( 555): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117) W/System.err( 555): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994) W/System.err( 555): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702) W / System.err(555):IOException处理:26 W / System.err(555):java.io.IOException:服务器返回:3 W / System.err(555):在android_maps_conflict_avoidance.com.google.googlenav。 map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)W / System.err(555):at android_maps_conflict_avoidance.com.google.googlenav.map.MapService $ MapTileRequest.readResponseData(MapService.java:1473)W / System.err( 555):在android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)W / System.err(555):at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher。 java:994)W / System.err(555):at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher $ DispatcherServer.run(DataRequestDispatcher.java:1702)

and my apiKey is correct. 我的apiKey是正确的。 Does anyone have this working with googlemaps with monodroid on mac? 有没有人在Mac上使用带有monodroid的googlemaps? If you do, how can I solve this? 如果你这样做,我该如何解决这个问题? Because I have already spent a long time trying to solve this one but I cannot find the solution. 因为我已经花了很长时间试图解决这个,但我找不到解决方案。

You can avoid the whole Google Maps and API Key mess if you don't mind the user leaving your application and just run the app directly. 如果您不介意用户离开您的应用程序并直接运行应用程序,则可以避免整个Google Maps和API Key混乱。 They can still hit the back key and end up in your application again. 他们仍然可以点击后退键并再次进入您的应用程序。 The code to do this is: 执行此操作的代码是:

Linkify.AddLinks(lblAddress, MatchOptions.MapAddresses); 

However, this only works on a TextView. 但是,这仅适用于TextView。 If you want to do it on a button click, you'd have to do a bit more investigating. 如果你想点击一下按钮就可以了,你需要做更多的调查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM