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" />
Post a Comment for "Binary Xml File Line #0: Error Inflating Class"