java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.zxz/com.example.zxz.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar

jileniao.net | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android6.0:新建eclipse工程遇到的几个错误记录 - 极乐鸟网站(Will)

    jileniao.net | 9 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.zxz/com.example.zxz.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar
  2. 0

    Can't create an activity with an ActionBar

    Stack Overflow | 1 year ago | Yonatan Nir
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.testing.name/com.testing.name.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar
  3. 0

    My Android App will not work on the real device?

    Stack Overflow | 1 year ago | Dominik
    java.lang.RuntimeException: Unable to start activity ComponentInfo{dominik.de.diefitnessapp/dominik.de.diefitnessapp.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.v7.widget.Toolbar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    crash with "com.android.support:appcompat-v7:23.2.0"

    GitHub | 1 year ago | dkmeteor
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.zouyin.app/com.yalantis.ucrop.UCropActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class android.support.v7.widget.Toolbar
  6. 0

    Runtime Exception

    GitHub | 1 year ago | sunny7U
    java.lang.RuntimeException: Unable to start activity ComponentInfo{ll.com.hellochart/hellocharts.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.xmlpull.v1.XmlPullParserException

    Binary XML file line #17: invalid drawable tag vector

    at android.graphics.drawable.Drawable.createFromXmlInner()
  2. Android Platform
    Resources.getDrawable
    1. android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:877)
    2. android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)
    3. android.content.res.Resources.loadDrawable(Resources.java:1948)
    4. android.content.res.Resources.getDrawable(Resources.java:672)
    4 frames
  3. Android v7
    TintResources.getDrawable
    1. android.support.v7.widget.TintResources.superGetDrawable(TintResources.java:48)
    2. android.support.v7.widget.AppCompatDrawableManager.onDrawableLoadedFromResources(AppCompatDrawableManager.java:374)
    3. android.support.v7.widget.TintResources.getDrawable(TintResources.java:44)
    3 frames
  4. Android Support v4
    ContextCompat.getDrawable
    1. android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:323)
    1 frame
  5. Android v7
    Toolbar.<init>
    1. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:180)
    2. android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)
    3. android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)
    4. android.support.v7.widget.Toolbar.<init>(Toolbar.java:254)
    5. android.support.v7.widget.Toolbar.<init>(Toolbar.java:196)
    5 frames
  6. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.constructNative(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:417)
    2 frames
  7. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:587)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
    4. android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:489)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:396)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:352)
    7 frames
  8. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:379)
    2. android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)
    3. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)
    4. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
    4 frames
  9. com.example.zxz
    MainActivity.onCreate
    1. com.example.zxz.MainActivity.onCreate(MainActivity.java:14)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5184)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1083)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
    5. android.app.ActivityThread.access$600(ActivityThread.java:140)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:4898)
    9 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
    2 frames
  13. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame