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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by P110
, 1 year ago
Unable to start activity ComponentInfo{p110.uk.helloworld/p110.uk.helloworld.MyActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via GitHub by hofmann
, 2 years ago
Unable to start activity ComponentInfo{de.marcreichelt.webp_backport.testapp/de.marcreichelt.webp_backport.testapp.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by Hector
, 2 years ago
Unable to start activity ComponentInfo{com.example.vivz/com.example.vivz.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by user7160059
, 1 year ago
Unable to start activity ComponentInfo{com.phsplash.captain.pcketham/com.phsplash.captain.pcketham.HomeView}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by Emmanuel ogbonna
, 3 months ago
Unable to start activity ComponentInfo{com.close.close/com.theartofdev.edmodo.cropper.CropImageActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by Rahulrr2602
, 1 month ago
Unable to start activity ComponentInfo{com.package.app/com.package.app.Activities.Splash_Screen}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
java.lang.RuntimeException: Unable to start activity ComponentInfo{p110.uk.helloworld/p110.uk.helloworld.MyActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:108)
at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:57)
at p110.uk.helloworld.MyActivity.onCreate(MyActivity.java:22)
at android.app.Activity.performCreate(Activity.java:5720)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)

Users with the same issue

2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.