O
Size: a a a
O
N
Н
ㅤ
ㅤ
С
A
Н
Н
ТР
O
ТР
Н
O
I
П
AS
O
class GeneralErrorRetryWidget @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ErrorRetryView(context, attrs, defStyleAttr) {
...
Open class ErrorRetryView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr){
init {
View.inflate(context, R.layout.error_retry_view, this)
}
...
Error: GeneralErrorRetryWidget must extend android.view.View [Instantiatable]
<com.---.GeneralErrorRetryWidget
^
Explanation for issues of type "Instantiatable":
Activities, services, broadcast receivers etc. registered in the manifest
file (or for custom views, in a layout file) must be "instantiatable" by
the system, which means that the class must be public, it must have an
empty public constructor, and if it's an inner class, it must be a static
inner class.
NK