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

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Android: Unfortunately App has stopped running Layout Issue

    Stack Overflow | 9 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

    How to create a CustomView using existing widgets

    Stack Overflow | 1 year 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
  3. 0

    The android custom view error : android.view.InflateException

    Stack Overflow | 2 years ago | rowss
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.pooyafayyaz.first_photo_edit_test/com.example.pooyafayyaz.first_photo_edit_test.second}: android.view.InflateException: Binary XML file line #2: Error inflating class com.example.pooyafayyaz.first_photo_edit_test.CanvasView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Class could not be instantiated XML

    Stack Overflow | 3 years ago | Rohodude
    java.lang.NoSuchMethodException: com.rohit.ShowcaseView.<init> (android.content.Context, android.util.AttributeSet)
  6. 0

    Pushwoosh crash com.pushwoosh.richpages.RichPageActivity.getInflatedView - Pushwoosh Community

    pushwoosh.com | 9 months ago
    java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
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