java.lang.RuntimeException

Unable to start activity ComponentInfo{com.vehicollate/com.vehicollate.HomeScreen}: android.view.InflateException: Binary XML file line #11: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout


Solutions on the web53834

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.vehicollate/com.vehicollate.HomeScreen}: android.view.InflateException: Binary XML file line #11: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of github
Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of github
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

Solution icon of github
Unable to start activity ComponentInfo{xxxx}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of github
Unable to start activity ComponentInfo{com.solutions.miyamiya/com.solutions.miyamiya.CustomerMainHomeActivity}: android.view.InflateException: Binary XML file line #11: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.ciputraresidence.ciapp.ourproject/com.ciputraresidence.ciapp.ourproject.HomeActivity}: android.view.InflateException: Binary XML file line #33: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of github
via GitHub by GengmeiAndroid
, 9 months ago
Unable to start activity ComponentInfo{com.kelin.mvvmlight.zhihu/com.kelin.mvvmlight.zhihu.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of github
via GitHub by AmiNadim
, 11 months ago
Unable to start activity ComponentInfo{dim.intellivase/dim.intellivase.BaseContainer}: android.view.InflateException: Binary XML file line #18: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of stackoverflow
via Stack Overflow by Shumin
, 10 months ago
Unable to start activity ComponentInfo{com.test.android/com.test.android.ui.activity.RandomActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.niddu85.fungiatt/com.niddu85.fungiatt.ScrollingActivity}: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vehicollate/com.vehicollate.HomeScreen}: android.view.InflateException: Binary XML file line #11: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2456) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539) at android.app.ActivityThread.access$900(ActivityThread.java:159) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5507) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: android.view.InflateException: Binary XML file line #11: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout at android.view.LayoutInflater.inflate(LayoutInflater.java:539) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at android.view.LayoutInflater.inflate(LayoutInflater.java:374) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.vehicollate.HomeScreen.onCreate(HomeScreen.java:61) at android.app.Activity.performCreate(Activity.java:6304) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409) ... 9 more Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout at android.view.LayoutInflater.createView(LayoutInflater.java:645) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.rInflate(LayoutInflater.java:838) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:971) at android.view.LayoutInflater.rInflate(LayoutInflater.java:831) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) ... 17 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) at android.view.LayoutInflater.createView(LayoutInflater.java:619) ... 27 more Caused by: java.lang.NoSuchMethodError: No static method setLayoutDirection(Landroid/graphics/drawable/Drawable;I)V in class Landroid/support/v4/graphics/drawable/DrawableCompat; or its super classes (declaration of 'android.support.v4.graphics.drawable.DrawableCompat' appears in /data/data/com.vehicollate/files/instant-run/dex/slice-com.android.support-support-v4-24.0.0_6014d4d6478dd0a9be96de3350bdf96cfabaaafa-classes.dex) at android.support.design.widget.CollapsingToolbarLayout.setStatusBarScrim(CollapsingToolbarLayout.java:663) at android.support.design.widget.CollapsingToolbarLayout.<init>(CollapsingToolbarLayout.java:197) at android.support.design.widget.CollapsingToolbarLayout.<init>(CollapsingToolbarLayout.java:132) at java.lang.reflect.Constructor.newInstance(Native Method) at android.view.LayoutInflater.createView(LayoutInflater.java:619) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.rInflate(LayoutInflater.java:838) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:971) at android.view.LayoutInflater.rInflate(LayoutInflater.java:831) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at android.view.LayoutInflater.inflate(LayoutInflater.java:374) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.vehicollate.HomeScreen.onCreate(HomeScreen.java:61) at android.app.Activity.performCreate(Activity.java:6304) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539) at android.app.ActivityThread.access$900(ActivityThread.java:159) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5507)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
10 times, 7 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
1 more bugmates