Skip to content

The following classes could not be instantiated: - android.support.design.widget.TextInputLayout #1

@komalnikhare

Description

@komalnikhare

hi @StylingAndroid ....

@kneth...

I am trying to use TextInputLayut but, getting error in my xml file which is ...

Exception raised during rendering: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
Exception details are logged in Window > Show View > Error Log
The following classes could not be instantiated:

  • android.support.design.widget.TextInputLayout (Open Class, Show Error Log)
    See the Error Log (Window > Show View) for more details.

java.lang.illegalstateException you need to use a theme.appcompat theme(or descendant)

Caused by: java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
at android.support.design.widget.ThemeUtils.checkAppCompatTheme(ThemeUtils.java:34)
at android.support.design.widget.TextInputLayout.(TextInputLayout.java:103)
at android.support.design.widget.TextInputLayout.(TextInputLayout.java:96)

please help me to out of this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions