Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
You have a custom view referenced in your layout XML, and the custom view doesn't have the required public
constructor that takes in Context,AttributeSet
arguments.
If you arrived at this post but are using Kotlin, annotate your constructor with @JvmOverloads
.
Doc: Kotlin - Overloads Generation
E.g.: class MyView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyle: Int = 0) : LinearLayout(context, attrs, defStyle)