java.lang.IllegalStateException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21073

  • via GitHub by anttka4
    , 8 months ago
    You need to use a Theme.AppCompat theme (or descendant) with this activity.
  • via GitHub by Fleker
    , 2 months ago
    You need to use a Theme.AppCompat theme (or descendant) with this activity.
  • You need to use a Theme.AppCompat theme (or descendant) with this activity.
  • Stack trace

    • 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:343) at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:312) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:277) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.realmilk.MainActivity.onCreate(MainActivity.java:11) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    10 times, 11 months ago
    4 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 2 months ago
    Once, 4 months ago
    10 more bugmates