java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

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 Roman Fedoruk
, 1 year ago
You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by Unknown author, 2 years ago
You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by Gregg
, 3 months ago
You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by mcfly soft
, 1 month ago
You need to use a Theme.AppCompat theme (or descendant) with this activity.
via GitHub by ranbeuer
, 8 months ago
You need to use a Theme.AppCompat theme (or descendant) with this activity.
via GitHub by xuefer
, 1 year ago
You need to use a Theme.AppCompat theme (or descendant) with this activity.
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:340)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:309)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:273)
at com.example.roman.realestatecalculator.MainActivity.onCreate(MainActivity.java:32)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)

Users with the same issue

10 times, 1 year ago
17 times, 1 year ago
4 times, 1 year ago
7 times, 1 year ago
Once, 1 year ago

Write tip

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