Error Inflating CollapsingToolbarLayout

前端 未结 5 496
清歌不尽
清歌不尽 2020-12-17 09:13

I recently updated the support design library to the latest version and now every activity that has a CollapsingToolbarLayout throws the following exception:

5条回答
  •  一整个雨季
    2020-12-17 09:51

    Try updating a com.android.support:design dependency to the same version as other support libraries. I have just resolved this issue in my own project. I did not add it explicitly in my build.gradle since I use a library which uses support-design library. Gradle task androidDependencies showed that support design still had lower version after update of other libraries, so I added it explicitly and it worked like a charm.

提交回复
热议问题