java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.

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 Stack Overflow by tccpg288
, 1 year ago
You need to use a Theme.AppCompat theme (or descendant) with the design library.
via Stack Overflow by id.ed
, 2 weeks ago
You need to use a Theme.AppCompat theme (or descendant) with the design library.
via Stack Overflow by Archit Lohani
, 10 months ago
You need to use a Theme.AppCompat theme (or descendant) with the design library.
via Stack Overflow by Avinash
, 2 years ago
You need to use a Theme.AppCompat theme (or descendant) with the design library.
via Stack Overflow by Kane Samba
, 10 months ago
You need to use a Theme.AppCompat theme (or descendant) with the design library.
via Stack Overflow by Nathaniel Nathan
, 11 months ago
You need to use a Theme.AppCompat theme (or descendant) with the design library.
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:36)
at android.support.design.widget.TextInputLayout.(TextInputLayout.java:139)
at android.support.design.widget.TextInputLayout.(TextInputLayout.java:132)
at android.support.design.widget.TextInputLayout.(TextInputLayout.java:128)
at com.troychuinard.fanpolls.Fragment.CreateFragment$YourItemSelectedListener.onItemSelected(CreateFragment.java:153)
at android.widget.AdapterView.fireOnSelected(AdapterView.java:924)
at android.widget.AdapterView.dispatchOnItemSelected(AdapterView.java:913)
at android.widget.AdapterView.access$300(AdapterView.java:51)
at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:883)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)

Users with the same issue

Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

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