This exception occurs when AppBarLayout tries to initialize its scrollbar - it is possible that your activity style has a default scroll style and that AppBarLayout inherits it.
The easiest solution is to make sure that AppBarLayout is not using the scroll bar ever and only to do the following:
<android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="none"> </android.support.design.widget.AppBarLayout>
I am sure that I did not see an error report for this problem in the Android project, so I think I should inform about it.
EDIT
I created an example application to reproduce this problem - you can find it on the right here . When you run the issue-254934 on a device with API22, both the AppBarLayout and API23 configurations work, and above one of them raises exactly the same exception as you reported here.
EDIT
Issue-254923 has been fixed and a fix will be released in a future version
source share