java.lang.IllegalStateException

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

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web71

  • via Stack Overflow by Hudson Worden
    ,
  • 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:340) at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:309) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:273) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:136) at com.sr.dd.dd_app.screens.main.MainActivity.onCreate(MainActivity.java:87)

    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

    dmitrydmitry
    Once,
    asvidasvid
    2 times, last one
    syntech16syntech16
    Once,
    Indri YunitaIndri Yunita
    Once,
    filpgamefilpgame
    3 times, last one
    10 more bugmates