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

Stack Overflow | ramzixp | 8 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

    You need to use a Theme.AppCompat theme but I am using it?

    Stack Overflow | 8 months ago | ramzixp
    java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx/xxx.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  2. 0

    Set pixel colors of bitmap android

    Stack Overflow | 1 year ago | Abhishek Singh
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gappstudio.creator.editor.skins.minecraft.mcpeskincreatorstudio/com.gappstudio.creator.editor.skins.minecraft.mcpeskincreatorstudio.SecondActivity}: java.lang.IllegalStateException
  3. 0

    Shows Locaion.getlatitude a null object despite use of Request location updates?

    Stack Overflow | 1 year ago | saksham gulati
    java.lang.RuntimeException: Unable to start activity ComponentInfo{saksham.geofencing/saksham.geofencing.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GoogleApiClient is not connected despite onconnect() being called?

    Stack Overflow | 1 year ago | saksham gulati
    java.lang.RuntimeException: Unable to start activity ComponentInfo{saksham.geofencing/saksham.geofencing.MapsActivity}: java.lang.IllegalStateException: GoogleApiClient is not connected yet.
  6. 0

    My code shows error inflating class fragment, for recycler view. This is my code, Adapter class, and all the xml files I used

    Stack Overflow | 1 year ago | Sayan Tapadar
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sayan.materialtoolbar/com.example.sayan.materialtoolbar.MainActivity}: android.view.InflateException: Binary XML file line #22: Binary XML file line #22: Error inflating class fragment

  1. Indri Yunita 4 times, last 3 weeks ago
  2. andreeaa marin 184 times, last 1 month ago
  3. Reich 59 times, last 2 months ago
  4. gamebusterz 40 times, last 1 month ago
  5. Emrah Küçük 3 times, last 2 months ago
42 more registered users
11 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.RuntimeException

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

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
    2 frames