AppCompat ImageButton RRS feed

  • Question

  • User317681 posted

    I am having problems with adding an Image Button to axml layout. I get this error at runtime

    NoClassDefFoundError: android.support.v7.widget.AppCompatImageButton

    I have tried adding this Namespace


    and using app:srcCompat instead of android:src on the ImageButton but I just get the message that the {namespace}:srcCompat is not declared.

    Has anyone come across this issue? I am using of Support.7.AppCompat.

    Friday, September 15, 2017 9:22 PM


  • User317681 posted

    I downgraded appCompat to the final 24.x version and it works.

    I did a xamarin forms project recently and the versions are extremely fragile, no backwards compatibility, no documentation updates when things changed. So many broken updates and support is left to the community. I am hoping xamarin android is a little better. Please tell me this is a blip and not the norm :neutral:

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, September 16, 2017 8:31 AM