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

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 user2384694
, 9 months ago
You need to use a Theme.AppCompat theme (or descendant) with this activity. 26
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 26
at android.support.v7.app.AppCompatDelegateImplV7.i(SourceFile:340)
at android.support.v7.app.AppCompatDelegateImplV7.h(SourceFile:309)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(SourceFile:273)
at Activities.Commons.BaseActivity.onCreate(SourceFile:236)
at Activities.Accounts.AppLaunchActivity.onCreate(SourceFile:24)
at android.app.Activity.performCreate(Activity.java:5133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

Users with the same issue

Once, 5 months ago
Once, 8 months ago
3 times, 9 months ago
10 times, 1 year ago
10 times, 1 year ago
5 more bugmates

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