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

Stack Overflow | Hudson Worden | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Robolectric IllegalState Exception

    Stack Overflow | 8 months ago | Hudson Worden
    java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  2. 0

    Clash when pressed "Using custom tab and background colors"

    GitHub | 10 months ago | honjiaxuan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bottombar.sample/com.example.bottombar.sample.CustomColorActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  3. 0

    Clash when pressed "Using custom tab and background colors"

    GitHub | 10 months ago | honjiaxuan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bottombar.sample/com.example.bottombar.sample.CustomColorActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Clash when pressed "Using custom tab and background colors"

    GitHub | 10 months ago | honjiaxuan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bottombar.sample/com.example.bottombar.sample.CustomColorActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  6. 0

    java.lang.IllegalStateException App crashes right away

    Stack Overflow | 11 months ago | Roman Fedoruk
    java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

  1. Indri Yunita 1 times, last 3 months ago
  2. filpgame 3 times, last 3 months ago
  3. Alexandru Popa 10 times, last 6 months ago
  4. Benny 10 times, last 10 months ago
  5. danleyb2Interintel 4 times, last 11 months ago
3 more registered users
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

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

    at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor()
  2. Android v7
    AppCompatActivity.setContentView
    1. android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:340)
    2. android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:309)
    3. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:273)
    4. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:136)
    4 frames
  3. com.sr.dd
    MainActivity.onCreate
    1. com.sr.dd.dd_app.screens.main.MainActivity.onCreate(MainActivity.java:87)
    1 frame