I use <include layout>in my Android application and one of my included layouts had an error, one parameter ( android:layout_height) was not set.
The LogCat error log gave a completely useless error:
java.lang.RuntimeException: Binary XML file line #19: you
must supply a layout_height attribute
Is there an easy way to find out which layout was affected ( Binary XML file is a really broad definition)? I had to dig through all the layouts to find the wrong XML layout file
I am using Android Developer Tools v21.1, but although the error comes from logCat, I am not sure if there is a better way to find the missing file ...
source
share