Start throwing better exceptions in LayoutInflater.
Include source layout file in exceptions thrown from LayoutInflater. This makes it easier to trace failures when using <include ...> tags. You'll get something like Caused by: android.view.InflateException: Binary XML file line #11 in com.myapp:layout/activity_main: Binary XML file line #6 in com.myapp:layout/overlay: Error inflating class MyView Caused by: android.view.InflateException: Binary XML file line #6 in com.myapp:layout/overlay: Error inflating class MyView Caused by: java.lang.ClassNotFoundException: Didn't find class "com.myapp.MyView"... Bug: 127425845 Test: Manual app launch that has invalid XML Change-Id: I262fa9625dd2981eb22e493e9e4a1d2b7b75ef4b
Loading
Please register or sign in to comment