Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Issue after upgrading v4 Support Library

$
0
0

Hi all !

I have an issue after upgrading my v4 Support Library Package From v21 to v22.

My app crashes when trying to use a Custom Renderer inheriting from ListViewRenderer. It worked perfectly before upgrade.

I tried to upgrade my SDKs through the Android SDK Manager but it doesn't solve my problem.

Thanks a lot !

Here is the exception :

[MonoDroid] System.MissingMethodException: Method not found: 'Android.Runtime.JNIEnv.StartCreateInstance'.
[MonoDroid] at Xamarin.Forms.Platform.Android.ListViewRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs

1 e) [0x00000] in <filename unknown>:0 
[MonoDroid]   at PicardInventaire.Droid.Renderers.NoLongPressListViewRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs
1 e) [0x00001] in c:\DEV\Xamarin Projects\PicardInventaire\Droid\Renderers\NoLongPressListView.cs:18
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.ListView].SetElement (Xamarin.Forms.ListView element) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.ListView].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, Boolean sameChildren) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.View].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.View].SetElement (Xamarin.Forms.View element) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.View].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, Boolean sameChildren) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.Page].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.Page].SetElement (Xamarin.Forms.Page element) [0x00000] in <filename unknown>:0 
[MonoDroid]   at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[Xamarin.Forms.Page].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.NavigationRenderer.SwitchContentAsync (Xamarin.Forms.Page view, Boolean animated, Boolean removed) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page view, Boolean animated) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.NavigationRenderer.PushViewAsync (Xamarin.Forms.Page page, Boolean animated) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Platform.Android.NavigationRenderer.OnPushed (System.Object sender, Xamarin.Forms.NavigationRequestedEventArgs e) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.NavigationPage+d__16.MoveNext () [0x00000] in :0
[MonoDroid] --- End of stack trace from previous location where exception was thrown ---
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
[MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0
[MonoDroid] at Xamarin.Forms.NavigationPage+d__11.MoveNext () [0x00000] in :0
[MonoDroid] --- End of stack trace from previous location where exception was thrown ---
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
[MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0
[MonoDroid] at PicardInventaire.Pages.LoginPage+d__3.MoveNext () [0x0022e] in c:\DEV\Xamarin Projects\PicardInventaire\PicardInventaire\Pages\LoginPage.xaml.cs:49

Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>