java.lang.RuntimeException: Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via GitHub by gubaju
, 1 year ago
Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout
via Stack Overflow by Irmaan
, 1 year ago
Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #7: Error inflating class android.support.v7.widget.RecyclerView
via Stack Overflow by Mike Scott
, 1 year ago
Unable to start activity ComponentInfo{edu.utexas.scottm.googlemapsapi_2_demo/edu.utexas.scottm.googlemapsapi_2_demo.SimpleMapActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
via Stack Overflow by peer
, 1 year ago
Unable to start activity ComponentInfo{de.sudoq/de.sudoq.controller.menus.SudokuLoadingActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class CoordinatorLayout
via GitHub by Ionea
, 1 year ago
Unable to start activity ComponentInfo{com.example.travelar/system.ArActivity}: android.view.InflateException: Binary XML file line #35: Error inflating class android.support.v7.internal.widget.ActionBarView
via GitHub by Mathbl
, 1 year ago
Unable to start activity ComponentInfo{com.myapp.android/io.intercom.android.sdk.activities.IntercomMessengerActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout
java.lang.RuntimeException: Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
18 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.