Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork156
Closed
Description
The components are pretty nice, and they work fine for me on newer Android.
But when I also test it on 4.2.2, I receive the following exception:
Java.Lang.NoSuchMethodError: no method with name = 'getDrawable' signature='()Landroid/graphics/drawable/Drawable;' in class Landroid/graphics/drawable/InsetDrawable; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() [0x0000c] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 at Java.Interop.JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature)[0x0005b] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0 at Java.Interop.JniType.GetInstanceMethod(System.String name, System.String signature) [0x0000c] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0 at Java.Interop.JniPeerMembers+JniInstanceMethods.GetMethodInfo (System.String encodedMember)[0x00031] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)[0x0001c] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0 at Android.Graphics.Drawables.InsetDrawable.get_Drawable() [0x0000a] in <25661073a35344a89f215a4cf81af37c>:0 at XF.Material.Droid.Renderers.MaterialButtonRenderer.CreateOutlinedButtonDrawable() [0x000ce] in C:\Users\cadn\source\repos\XF.Material\src\XF.Material\XF.Material.Droid\Renderers\MaterialButtonRenderer.cs:132 at XF.Material.Droid.Renderers.MaterialButtonRenderer.UpdateDrawable() [0x0003a] in C:\Users\cadn\source\repos\XF.Material\src\XF.Material\XF.Material.Droid\Renderers\MaterialButtonRenderer.cs:263 at XF.Material.Droid.Renderers.MaterialButtonRenderer.OnElementChanged(Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e) [0x00095] in C:\Users\cadn\source\repos\XF.Material\src\XF.Material\XF.Material.Droid\Renderers\MaterialButtonRenderer.cs:46 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element)[0x000d5] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:178 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)[0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:126In my particular case I rather use onlyMaterialButton component.
The issue looks like this issue mentioned on stackoverflow:
https://stackoverflow.com/questions/30266971/why-getdrawable-doesnt-work-on-some-android-devices
My current version of XF.Material library: 1.0.4
Metadata
Metadata
Assignees
Labels
No labels