2017-04-24 60 views
0

地圖顯示正確與引腳等。但在iOS下,我切換到不同的視圖,即使沒有引腳等接收此錯誤。也許Info.plist中的配置問題?Xamarin.Forms.GoogleMaps iOS系統.NullReferenceException

System.NullReferenceException:在Xamarin.Forms.GoogleMaps.iOS.MapRenderer.OnElementChanged對象引用不設置爲一個對象 的實例(Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1 [TElement] E)[0x00069 ]在< 0bdc53fe1bce4b6e878e432cac02c7af>:0

在Xamarin.Forms.Platform.iOS.VisualElementRenderer`1 [TElement] .SetElement(TElement元件)[0x00110]在C:\ BuildAgent3 \工作\ ca3766cfc22354a1 \ Xamarin.Forms.Platform .IOS \ VisualElementRenderer.cs:167

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

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

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

在Xamarin.Forms.Platf orm.iOS.Platform.DisposeModelAndChildrenRenderers(Xamarin.Forms.Element視圖)[0x00038]在C:\ BuildAgent3 \工作\ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ Platform.cs:231

在Xamarin.Forms。 Platform.iOS.Platform.HandleChildRemoved(System.Object的發件人,Xamarin.Forms.ElementEventArgs E)[0x00007]在C:\ BuildAgent3 \工作\ ca3766cfc22354a1 \ Xamarin.Forms.Platform.iOS \ Platform.cs:342

在Xamarin.Forms.Element.OnDescendantRemoved(Xamarin.Forms.Element子)[0x00008]在C:\ BuildAgent3 \工作\ ca3766cfc22354a1 \ Xamarin.Forms.Core \ Element.cs:601

在Xamarin.Forms.Element .OnDescendantRemoved(Xamarin.Forms.Element子)C:\ Buil中的[0x00022] dAgent3 \工作\ ca3766cfc22354a1 \ Xamarin.Forms.Core \ Element.cs:604

回答