Error inflating class CollapsingToolbarLayout

I found a solution May it work try it:

add below code in gradle build file

compile ('com.android.support:support-v4:23.4.0'){
    force = true;
}

Seems like it is having version conflict issue. All support library must be of same version. However, I didn’t use v4 support library before and it works.
I don’t know why updatimg android studio to 2.1.1 causes the issue.
I just force all v4 library to the same as other support libraries.

Leave a Comment