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

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

Solutions on the web

via Stack Overflow by user2384694
, 9 months ago
Unable to start activity ComponentInfo{Activities.MyAcitivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 1
via Stack Overflow by Jalle
, 2 years ago
Unable to start activity ComponentInfo{com.jalle.solitaire/com.jalle.solitaire.Solitaire}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
via Stack Overflow by user3487657
, 2 years ago
Unable to start activity ComponentInfo{com.example.gcmchatting/com.example.gcmchatting.MainActivity}: java.lang.RuntimeException: Binary XML file line #21: You must supply a layout_height attribute.
via GitHub by ankesh27
, 2 years ago
Unable to start activity ComponentInfo{com.mydala/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by Manwal
, 2 years ago
Unable to start activity ComponentInfo{com.example.title/com.example.title.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by José Carlos
, 1 week ago
Unable to start activity ComponentInfo{coursera.momaproject/coursera.momaproject.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
java.lang.RuntimeException: Unable to start activity ComponentInfo{Activities.MyAcitivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 1
at android.support.v7.app.AppCompatDelegateImplV7.i(SourceFile:340)
at android.support.v7.app.AppCompatDelegateImplV7.h(SourceFile:309)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(SourceFile:273)
at android.app.Activity.performCreate(Activity.java:5133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

Users with the same issue

Once, 5 months ago
Once, 8 months ago
3 times, 9 months ago
10 times, 1 year ago
10 times, 1 year ago
5 more bugmates

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