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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by kjeremy
, 1 year ago
android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.Button at android.support.design.widget.Snackbar$SnackbarLayout. onFinishInflate(Snackbar.java:696)
via bigresource.com by Unknown author, 1 year ago
android.widget.EditText cannot be cast to android.view.ViewGroup
via bigresource.com by Unknown author, 2 years ago
android.widget.EditText cannot be cast to android.view.ViewGroup
via bigresource.com by Unknown author, 2 years ago
android.widget.EditText cannot be cast to android.view.ViewGroup
via Stack Overflow by user3340483
, 2 years ago
com.zyz.mobile.example.SelectableTextView cannot be cast to android.view.ViewGroup
via Stack Overflow by user2581961
, 2 years ago
android.widget.TextView cannot be cast to android.view.ViewGroup
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(LayoutInflater.java:826)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)

Users with the same issue

Once, 1 year ago
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.