java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button at android.support.design.widget.Snackbar$SnackbarLayout. onFinishInflate(Snackbar.java:696)

GitHub | kjeremy | 7 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

    GitHub comment 1412#240207005

    GitHub | 7 months ago | kjeremy
    java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button at android.support.design.widget.Snackbar$SnackbarLayout. onFinishInflate(Snackbar.java:696)
  2. 0

    android.widget.EditText cannot be cast to android.view.ViewGroup

    Stack Overflow | 3 years ago | user3102141
    java.lang.ClassCastException: android.widget.EditText cannot be cast to android.view.ViewGroup
  3. 0

    Exception in android: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup

    Stack Overflow | 2 years ago | stack trace
    java.lang.ClassCastException: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Eclipse Run TIme error InflateException

    Stack Overflow | 2 years ago | Giovanni Siciliano
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ciao/com.example.ciao.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
  6. 0

    GridLayout giving errors, crashing app

    Stack Overflow | 5 years ago | Age
    java.lang.ClassCastException: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup

  1. balajivaishnav 1 times, last 1 year ago
  2. tone5992 1 times, last 1 year ago
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.ClassCastException

    android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button at android.support.design.widget.Snackbar$SnackbarLayout. onFinishInflate(Snackbar.java:696)

    at android.view.LayoutInflater.rInflate()
  2. Android Platform
    LayoutInflater.inflate
    1. android.view.LayoutInflater.rInflate(LayoutInflater.java:826)
    2. android.view.LayoutInflater.inflate(LayoutInflater.java:511)
    3. android.view.LayoutInflater.inflate(LayoutInflater.java:415)
    3 frames