Figuring out which layout has an error

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 ...

+4
source share
1 answer

for error:

java.lang.RuntimeException: Binary XML file line #19: you 
must supply a layout_height attribute

, IDE, , Eclise. Android Studio Android.

Google Android plug-in Eclipse.

, .

enter image description here

, :-p

+4

Source: https://habr.com/ru/post/1620483/


All Articles