xamarin.android - xamarin android Google maps exception when closing page with map -
i have exception in xamarin forms – in android – when closing custom map.
i rendering in android , once every 5~ times exception when closing page google maps
the exception follows:
unhandled exception: system.notsupportedexception: unable activate instance of type xamarin.forms.maps.android.maprenderer native handle b250001d ---> system.missingmethodexception: no constructor found xamarin.forms.maps.android.maprenderer::.ctor(system.intptr, android.runtime.jnihandleownership) ---> java.interop.javalocationexception: exception of type 'java.interop.javalocationexception' thrown
i saw post in stack overflow:
error when navigating away page map on android, while on-screen keyboard visible
and tried create constructor this:
public custommaprenderer(intptr javareference, jnihandleownership jnihandleownership) : base(javareference, jnihandleownership) { }
but compilation error:
'maprenderer' not contain constructor takes 2 arguments
what error ??
Comments
Post a Comment