java.lang.RuntimeException: Unable to start activity ComponentInfo{com.stefan.example/com.stefan.example.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class com.stefan.example.MainActivity.CustomButton

Stack Overflow | Frank Stefan | 4 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

    How create a custom view in an Android application?

    Stack Overflow | 4 months ago | Frank Stefan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.stefan.example/com.stefan.example.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class com.stefan.example.MainActivity.CustomButton
  2. 0

    Unfortunately, .... has stopped

    Stack Overflow | 2 years ago | Michael
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.teset7/com.example.teset7.MainActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class android.support.v7.internal.widget.NativeActionModeAwareLayout
  3. 0

    android sliding up panel in my eclipse project showing error

    Stack Overflow | 2 years ago | Edward
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sothree.slidinguppanel.demo/com.sothree.slidinguppanel.demo.DemoActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class android.support.v7.internal.widget.NativeActionModeAwareLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Runtime Error while using AppCompatActivity instead of Actionbar

    Stack Overflow | 2 years ago | Saggy
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.drawer.sample/com.drawer.sample.MainActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class android.support.v7.internal.widget.NativeActionModeAwareLayout
  6. 0

    Ultimate Recycler View

    Stack Overflow | 2 years ago | JackyBoi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.legalapp.bharath.legalapp_test/com.legalapp.bharath.legalapp_test.Directory}: android.view.InflateException: Binary XML file line #8: Error inflating class com.marshalchen.ultimaterecyclerview.UltimateRecyclerview
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.ClassNotFoundException

    Didn't find class "com.stefan.example.MainActivity.CustomButton" on path: DexPathList[[zip file "/data/app/com.stefan.example-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

    at dalvik.system.BaseDexClassLoader.findClass()
  2. Android Platform
    BaseDexClassLoader.findClass
    1. dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    1 frame
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    2 frames
  4. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:571)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
    6 frames
  5. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
    2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
    2 frames
  6. com.stefan.example
    MainActivity.onCreate
    1. com.stefan.example.MainActivity.onCreate(MainActivity.java:30)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:6020)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2366)
    5. android.app.ActivityThread.access$800(ActivityThread.java:149)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5297)
    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:908)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
    2 frames