java.lang.RuntimeException

Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.example.small.app.main.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.TabLayout

Solutions on the web53061

  • Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.example.small.app.main.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.TabLayout
  • via GitHub by aheadlcx
    , 2 months ago
    Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.example.small.app.main.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
  • Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.example.small.app.main.MainActivity}: android.view.InflateException: Binary XML file line #13: Binary XML file line #13: Error inflating class android.support.design.widget.AppBarLayout
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{net.wequick.example.small
    • et.wequick.example.small.app.main.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.TabLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2460) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522) at android.app.ActivityThread.access$800(ActivityThread.java:169) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5546) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759) Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.TabLayout at android.view.LayoutInflater.createView(LayoutInflater.java:637) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:747) at android.view.LayoutInflater.rInflate(LayoutInflater.java:810) at android.view.LayoutInflater.rInflate(LayoutInflater.java:813) at android.view.LayoutInflater.inflate(LayoutInflater.java:508) at android.view.LayoutInflater.inflate(LayoutInflater.java:418) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) at net.wequick.example.small.app.main.MainActivity.onCreate(MainActivity.java:71) at android.app.Activity.performCreate(Activity.java:5975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111) at net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.callActivityOnCreate(ApkBundleLauncher.java:168) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2413) ... 10 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:288) at android.view.LayoutInflater.createView(LayoutInflater.java:611) ... 23 more Caused by: android.content.res.Resources$NotFoundException: Resource "net.wequick.example.small:id/useLogo" (7f0c0014) is not a Drawable (color or path): TypedValue{t=0x12/d=0x0 a=6 r=0x7f0c0014} at android.content.res.Resources.loadDrawableForCookie(Resources.java:2687) at android.content.res.Resources.loadDrawable(Resources.java:2607) at android.content.res.TypedArray.getDrawable(TypedArray.java:751) at android.view.View.<init>(View.java:3777) at android.view.ViewGroup.<init>(ViewGroup.java:518) at android.widget.FrameLayout.<init>(FrameLayout.java:133) at android.widget.HorizontalScrollView.<init>(HorizontalScrollView.java:155) at android.widget.HorizontalScrollView.<init>(HorizontalScrollView.java:150) at android.support.design.widget.TabLayout.<init>(TabLayout.java:265) at android.support.design.widget.TabLayout.<init>(TabLayout.java:261) ... 26 more

    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

    2 times, 5 months ago
    Once, 6 months ago
    Once, 7 months ago
    781 times, 11 months ago
    233 times, 1 year ago
    9 more bugmates