Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Java.Lang.NoSuchMethodError: no non-static method "Landroid/widget/CompoundButton Xamarin.Android

BageraBagera USMember ✭✭

I get this error:

Java.Lang.NoSuchMethodError: no non-static method "Landroid/widget/CompoundButton;.getButtonDrawable()Landroid/graphics/drawable/Drawable;

When I am using a radio button ButtonDrawable like this:

`if(myRadioButton.ButtonDrawable == null)
    //Do Something

I tested the app on android API = 23 (Marshmallow) and it works fine. I get this error for android API < 23 (older than Marshmallow)

I am using Xamarin.Android.Support.Design version 25.3.1

Any idea to fix it?

Best Answer


Sign In or Register to comment.