java.lang.RuntimeException: Unable to start activity ComponentInfo{mygod.myname.mygodapp/mygod.myname.mygodapp.DrawTriangleActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class mygod.myname.mygodapp.DrawingView

  1. 0

    Android: Unfortunately App has stopped running Layout Issue

    Stack Overflow | 5 months ago | IHaveProblemsCoding101
    java.lang.RuntimeException: Unable to start activity ComponentInfo{mygod.myname.mygodapp/mygod.myname.mygodapp.DrawTriangleActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class mygod.myname.mygodapp.DrawingView
  2. 0

    The android custom view error : android.view.InflateException

    Stack Overflow | 2 years ago
    java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
  3. 0

    How to create a CustomView using existing widgets

    Stack Overflow | 12 months ago | Vernon Kawonza
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.venon.jerseytwenty3twenty4/com.venon.jerseytwenty3twenty4.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class com.venon.jerseytwenty3twenty4.CardWidget
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]

    Stack Overflow | 11 months ago | bo2
    java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
  6. 0

    Class could not be instantiated XML

    Stack Overflow | 3 years ago | Rohodude
    java.lang.NoSuchMethodException: com.rohit.ShowcaseView.&lt;init&gt; (android.content.Context, android.util.AttributeSet)

  1. maxxi 12 times, last 2 months ago
  2. Riyaz 2 times, last 4 days ago
  3. bmacedo 6 times, last 5 days ago
  4. bluebunnty 1 times, last 2 weeks ago
  5. Aria Pahlavan 1 times, last 3 weeks ago
23 more registered users
24 unregistered visitors
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.NoSuchMethodException

    <init> [class android.content.Context, interface android.util.AttributeSet]

    at java.lang.Class.getConstructor()
  2. Java RT
    Class.getConstructor
    1. java.lang.Class.getConstructor(Class.java:531)
    2. java.lang.Class.getConstructor(Class.java:495)
    2 frames
  3. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:587)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:511)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:415)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:366)
    6 frames
  4. 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
  5. mygod.myname.mygodapp
    DrawTriangleActivity.onCreate
    1. mygod.myname.mygodapp.DrawTriangleActivity.onCreate(DrawTriangleActivity.java:38)
    1 frame
  6. 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
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    1 frame