java.lang.RuntimeException: Unable to start activity ComponentInfo{com.atech.a_business/com.atech.a_business.layout.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout

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

    InflateException Error inflating class android.support.design.widget.CoordinatorLayout

    Stack Overflow | 5 months ago | SOAL ABDELDJALLIL
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.atech.a_business/com.atech.a_business.layout.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
  2. 0

    custom theme design problems in android

    Stack Overflow | 8 months ago | codehub
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.testing.theme/assetviewer.findergpstracking.com.finder.activity.HomeActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
  3. 0

    android.view.InflateException:

    Stack Overflow | 1 month ago | sifat ullah shah
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sifat.afterdelete/com.sifat.afterdelete.Dashboard}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android problems when creating new activity: Unable to start activity ComponentInfo

    Stack Overflow | 2 weeks ago | David Benítez
    java.lang.RuntimeException: Unable to start activity ComponentInfo{info.androidhive.navigationdrawer/info.androidhive.navigationdrawer.activity.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
  6. 0

    unable to use coordinator layout along with constraint layout

    Stack Overflow | 1 week ago | Manthri Anvesh
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.alamkanak.weekview/com.alamkanak.weekview.sample.BasicActivity}: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class android.support.design.widget.CoordinatorLayout
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. java.lang.IllegalArgumentException

    You need to use a Theme.AppCompat theme (or descendant) with the design library.

    at android.support.design.widget.ThemeUtils.checkAppCompatTheme()
  2. android.support.design
    CoordinatorLayout.<init>
    1. android.support.design.widget.ThemeUtils.checkAppCompatTheme(ThemeUtils.java:36)
    2. android.support.design.widget.CoordinatorLayout.<init>(CoordinatorLayout.java:192)
    3. android.support.design.widget.CoordinatorLayout.<init>(CoordinatorLayout.java:186)
    3 frames
  3. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.newInstance(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:288)
    2 frames
  4. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:614)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
    3. android.view.LayoutInflater.parseInclude(LayoutInflater.java:904)
    4. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:511)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:415)
    7. android.view.LayoutInflater.inflate(LayoutInflater.java:366)
    7 frames
  5. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  6. com.atech.a_business
    MainActivity.onCreate
    1. com.atech.a_business.layout.MainActivity.onCreate(MainActivity.java:69)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:6550)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3077)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3233)
    5. android.app.ActivityThread.access$1000(ActivityThread.java:197)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:145)
    9. android.app.ActivityThread.main(ActivityThread.java:6873)
    9 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    2 frames