Skip to content Skip to sidebar Skip to footer

Binary Xml File Line #0: Error Inflating Class

I have error running a quiz game. Something like this (when open gameactivity). My application stop and I ge Binary XML file error on line #0. It`s kinda weird, becouse I didnt see

Solution 1:

The problem comes with the library itself, If you check attrs.xml:

<attr name="buttonColor"format="color" />

As you can see the buttonColor only accepts color value, NOT color reference, and the view is trying to convert reference value you pass in xml to color and it throws an exception, So you can only use color for this attribute ( like this: #000000) Or fork the project and modify attrs.xml like this:

<attr name="buttonColor"format="color|reference" />

Solution 2:

Try to remove cornerRadius property it's causes the problem may be it's library issues

fbutton:cornerRadius="10dp"

Remove it's all buttons and it's work well

Post a Comment for "Binary Xml File Line #0: Error Inflating Class "