Xamarin.Forms.GoogleMaps iOS System.NullReferenceException

时间:2017-04-24 12:18:08

标签: ios google-maps xamarin

使用引脚等正确显示地图。但是在iOS下,当切换到不同的视图时,即使没有引脚等,也会收到此错误。可能是Info.plist中的配置问题?

System.NullReferenceException:未将对象引用设置为对象的实例   在Xamarin.Forms.GoogleMaps.iOS.MapRenderer.OnElementChanged(Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1 [TElement] e)[0x00069] in< 0bdc53fe1bce4b6e878e432cac02c7af>:0

在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ VisualElementRenderer.cs中的Xamarin.Forms.Platform.iOS.VisualElementRenderer`1 [TElement] .SetElement(TElement element)[0x00110]:167

在Xamarin.Forms.Platform.iOS.VisualElementRenderer`1 [TElement] .Dispose(System.Boolean disposing)[0x0007b]在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ VisualElementRenderer.cs :218

在Xamarin.Forms.Platform.iOS.ViewRenderer`2 [TView,TNativeView] .Dispose(System.Boolean disposing)[0x00000]在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ ViewRenderer的.cs:42

在< 0bdc53fe1bce4b6e878e432cac02c7af>中的Xamarin.Forms.GoogleMaps.iOS.MapRenderer.Dispose(System.Boolean disposing)[0x000a8]:0   在Foundation.NSObject.Dispose()[0x00000]的/Users/builder/data/lanes/4292/e66c6f19/source/xamarin-macios/src/Foundation/NSObject2.cs:133

在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ Platform.cs:231 <中的Xamarin.Forms.Platform.iOS.Platform.DisposeModelAndChildrenRenderers(Xamarin.Forms.Element视图)[0x00038] / p>

在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ Platform中的Xamarin.Forms.Platform.iOS.Platform.HandleChildRemoved(System.Object sender,Xamarin.Forms.ElementEventArgs e)[0x00007]的.cs:342

在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Core \ Element.cs:601

中的Xamarin.Forms.Element.OnDescendantRemoved(Xamarin.Forms.Element child)[0x00008]

在C:\ BuildAgent3 \ work \ ca3766cfc22354a1 \ Xamarin.Forms.Core \ Element.cs:604

中的Xamarin.Forms.Element.OnDescendantRemoved(Xamarin.Forms.Element child)[0x00022]

1 个答案:

答案 0 :(得分:0)

我有类似的问题,但是一旦我将xamarin.Forms.googlemaps更新为此版本 https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/1.8.1