Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IncompatibleClassChangeError - Exception on Android 4.4.4 #66

Closed
almirvuk opened this issue Nov 11, 2019 · 2 comments
Closed

IncompatibleClassChangeError - Exception on Android 4.4.4 #66

almirvuk opened this issue Nov 11, 2019 · 2 comments

Comments

@almirvuk
Copy link

PancakeView is only used for corner radius feature, but set_Elevation method is called and an exception is thrown because there is no support for Elevation on Android 4.4.4 version.

Packages:

  • Xamarin.Forms Version: 4.2.0.709249
  • Xamarin.Forms.PancakeView: 1.2.1

Tested device version:

  • Device OS Android: 4.4.4

Stack trace:

Java.Lang.IncompatibleClassChangeError: no method with name='setElevation' signature='(F)V' in class Lcom/xamarin/forms/platform/android/FormsViewGroup;

JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature)
JniType.GetInstanceMethod (System.String name, System.String signature)
JniPeerMembers+JniInstanceMethods.GetMethodInfo (System.String encodedMember)
JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
View.set_Elevation (System.Single value)
PancakeViewRenderer.SetupShadow (Xamarin.Forms.PancakeView.PancakeView pancake)
@sthewissen
Copy link
Owner

Fixed in #65

@almirvuk
Copy link
Author

Thank you for fixing this, and releasing package 1.3.6-beta. The bug is fixed and working correctly on the tested device.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants