Skip to content Skip to sidebar Skip to footer

Error Inflating Checkbox In Preferenceactivity

I'm having some issue with my pref_general.xml file as I get the following error message: android.view.InflateException: Binary XML file line #19: Error inflating class android.w

Solution 1:

There is a bug in version 23.2.0 of the support library that can cause this.

This was fixed in revision 23.2.1 of the library. This revision states the following which I believe was the root cause of the issue and explains why it only failed on your phone running API 19:

Fixed an exception in DrawableCompat.wrap() and LayerDrawable on API levels 17 to 19.

Solution 2:

Looking at your code, have you tried removing the "/" character from

android:title="Activer/Désactiver les notifications"

Edit: I should have probably made this a comment, but I don't have the reputation (yet.)

Post a Comment for "Error Inflating Checkbox In Preferenceactivity"