java.lang.RuntimeException: Binary XML file line #42: You must supply a layout_height attribute.

java.lang.RuntimeException: Binary XML file line #42: You must supply a layout_height attribute.

这个错误 按照英文翻译过来就是:XML必须要一个 layout_height 的属性 一般是由于失误少写了 layout_height 属性报错的 其他错误属性相应

解决方法:找到当前的XML布局 到视图页面 会出现警告报错 也可以通过点击报错的LogCat一路点击下来找到报错的XML

你可能感兴趣的:(java.lang.RuntimeException: Binary XML file line #42: You must supply a layout_height attribute.)