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 web17697

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{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
via Stack Overflow by KeenLearner
, 1 year ago
Unable to start activity ComponentInfo{com.example.shakeel.appidea2/com.example.shakeel.appidea2.General}: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solution icon of github
Unable to start activity ComponentInfo{com.raymi.mifm/com.raymi.mifm.app.main.LoginActivity}: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class <unknown>

Solution icon of github
via GitHub by phoenix19900219
, 10 months ago
Unable to start activity ComponentInfo{a.b.c.d/a.b.c.d.activity.LoginActivity}: android.view.InflateException: Binary XML file line #108: Binary XML file line #108: Error inflating class EditText

Solution icon of github
via GitHub by vext01
, 1 year ago
Unable to start activity ComponentInfo{com.nutomic.syncthingandroid/com.nutomic.syncthingandroid.activities.SettingsActivity}: android.view.InflateException: Binary XML file line #49: Binary XML file line #49: Error inflating class EditText

Solution icon of github
Unable to start activity ComponentInfo{com.qihoo360.replugin.sample.host/com.qihoo360.replugin.sample.host.PluginFragmentActivity}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class fragment

Solution icon of github
via GitHub by dvdobrovolskiy
, 10 months ago
Unable to start activity ComponentInfo{com.jwplayer.demo.vrsample/com.jwplayer.demo.vrsample.VideoActivity}: android.view.InflateException: Binary XML file line #26: Binary XML file line #12: Error inflating class com.longtailvideo.jwplayer.vr.JWVrVideoView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{XXXXXXXXXXXXXXXXXXX}: android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class android.support.design.widget.AppBarLayout

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.daniel.jaentodayapp/com.example.daniel.jaentodayapp.LoadingScreen}: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class <unknown>

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, 9 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
1 more bugmates