- Home
- Forum
- Xamarin.Forms
- Android: System.NotSupportedException: Unable to activate instance of type Com.Syncfusion.Navigationdrawer.SfNavigationDrawer
Android: System.NotSupportedException: Unable to activate instance of type Com.Syncfusion.Navigationdrawer.SfNavigationDrawer
I am getting below exception for some devices using SfNavigationDrawer verison 17.2.0.41. I am not sure in the latest versions if it was fixed.
i am using Xamarin.Forms" Version="4.1.0.673156"
Problem on occurs on models:
Android: 8.0.0
Android Build: OPR1.170623.026
Manufacturer: asus
Model: ASUS_Z012DC
Android: 8.0.0
Android Build: 48.1.A.2.122
Manufacturer: Sony
Model: G3421
Xamarin Exception Stack:
System.NotSupportedException: Unable to activate instance of type Com.Syncfusion.Navigationdrawer.SfNavigationDrawer from native handle 0x79 (key_handle 0xea7ff3f).
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) <0x7148c9ffb0 + 0x005f4> in <265a437695c84a1b9ddc47cad4669621>:0
at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) <0x7148c9c464 + 0x002f7> in <265a437695c84a1b9ddc47cad4669621>:0
at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) <0x7148c9c3d0 + 0x0005f> in <265a437695c84a1b9ddc47cad4669621>:0
at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) <0x7148c9c380 + 0x00043> in <265a437695c84a1b9ddc47cad4669621>:0
at Android.Views.View.get_Parent () <0x7148c85e40 + 0x0005f> in <265a437695c84a1b9ddc47cad4669621>:0
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].UpdateParentPageTraversalOrder () <0x71477e3d54 + 0x000bf> in <4ffeb550bcdb42998291a7d8a909a906>:0
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) <0x71477e38d4 + 0x0023f> in <4ffeb550bcdb42998291a7d8a909a906>:0
at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) <0x7148a6d02c + 0x0006f> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) <0x7148a7e36c + 0x0004b> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.Element.set_Parent (Xamarin.Forms.Element value) <0x7148a7d5d0 + 0x002bf> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.Element.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.VisualElement.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.TemplatedView.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.Layout.OnInternalRemoved (Xamarin.Forms.View view) [0x00012] in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) <0x7148a8a3b4 + 0x000c7> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) <0x7148f216b8 + 0x0005b> in <e292f96034a14fbc8c2e2daa010c7a4d>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) <0x7148f218c0 + 0x00073> in <e292f96034a14fbc8c2e2daa010c7a4d>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) <0x7148f21224 + 0x00077> in <e292f96034a14fbc8c2e2daa010c7a4d>:0
at System.Collections.ObjectModel.Collection`1[T].RemoveAt (System.Int32 index) <0x7149352bb8 + 0x000af> in <c1e11e59f1a447fbb4635984e9b0a758>:0
at Xamarin.Forms.TemplateUtilities.OnContentChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) <0x7148aa1ae4 + 0x0017b> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) <0x7148a6da3c + 0x001fb> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) <0x7148a6d68c + 0x0021f> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) <0x7148a6d514 + 0x00097> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) <0x7148a6d3ec + 0x00043> in <4542de7f0f544d51b46d63bd15d5f6b5>:0
at Xamarin.Forms.ContentView.set_Content (Xamarin.Forms.View value) [0x00000] in <4542de7f0f544d51b46d63bd15d5f6b5>:0
SIGN IN To post a reply.
1 Reply
RA
Rachel A
Syncfusion Team
October 21, 2019 10:12 AM UTC
Hi Emil,
Greetings from Syncfusion.
We have checked the reported issue in SfNavigationDrawer from our side in Android version 8. We are unable to reproduce the reported issue from our end. Please find the sample below and also confirm us whether the reproducing scenario is same. If it is different provide us the modified sample.
Device Details:
Android: 8.1.0
Android Build: OPM7.181205.001
Manufacturer: Nexus
Model: Nexus 6p
Android Build: OPM7.181205.001
Manufacturer: Nexus
Model: Nexus 6p
Sample Link:
Thanks,
Rachel.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
EM Emil
- Oct 20, 2019 10:36 PM UTC
- Oct 21, 2019 10:12 AM UTC