java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tech.te.app/com.tech.te.app.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

Stack Overflow | Leonid | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    OpenCV and Android Studio: "unfortunately app has stopped"

    Stack Overflow | 9 months ago | Leonid
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tech.te.app/com.tech.te.app.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  2. 0

    Showing an alert dialog in a translucent activity

    Stack Overflow | 3 months ago | Sweetie Anang
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.application.sweetiean.dummylocationupdates/com.application.sweetiean.dummylocationupdates.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  3. 0

    ImageLoader not available

    Stack Overflow | 5 years ago | NPike
    java.lang.IllegalStateException: ImageLoader not available
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SQLITE Failed to read row 0, column 6 from a CursorWindow which has 1 rows, 6 columns

    Stack Overflow | 4 years ago
    java.lang.IllegalStateException: Couldn't read row 0, col 6 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. 12-12 16:54:15.843: E/AndroidRuntime(744): at android.database.CursorWindow.nativeGetString(Native Method) 12-12 16:54:15.843: E/AndroidRuntime(744): at android.database.CursorWindow.getString(CursorWindow.java:442) 12-12 16:54:15.843: E/AndroidRuntime(744): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51) 12-12 16:54:15.843: E/AndroidRuntime(744): at com.books.bcukbook.DetailsActivity.getDataAndPopulate(DetailsActivity.java:477) 12-12 16:54:15.843: E/AndroidRuntime(744): at com.books.bcukbook.DetailsActivity.Exists(DetailsActivity.java:443) 12-12 16:54:15.843: E/AndroidRuntime(744): at com.books.bcukbook.DetailsActivity.onCreate(DetailsActivity.java:292) 12-12 16:54:15.843: E/AndroidRuntime(744): at android.app.Activity.performCreate(Activity.java:4465) 12-12 16:54:15.843: E/AndroidRuntime(744): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
  6. 0

    Very simple code, but got error "Activity has been destroyed" when use Fragment

    Stack Overflow | 5 years ago | Leem.fin
    java.lang.IllegalStateException: Activity has been destroyed

    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.onPostCreate
      1. android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:343)
      2. android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:312)
      3. android.support.v7.app.AppCompatDelegateImplV7.onPostCreate(AppCompatDelegateImplV7.java:167)
      4. android.support.v7.app.AppCompatActivity.onPostCreate(AppCompatActivity.java:98)
      4 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1198)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2638)
      2 frames