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.

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 GitHub by honjiaxuan
, 1 year ago
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.
via GitHub by honjiaxuan
, 1 year ago
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.
via GitHub by honjiaxuan
, 1 year ago
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.
via Stack Overflow by CaptainCarl
, 2 years ago
Unable to start activity ComponentInfo{com.example.esrmdesign/com.example.esrmdesign.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by user3595963
, 2 years ago
Unable to start activity ComponentInfo{com.example.apocalypse/com.example.apocalypse.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
via Stack Overflow by CharlieKing
, 2 years ago
Unable to start activity ComponentInfo{com.dummies.android.helloandroid/com.dummies.android.helloandroid.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{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.
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:340)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:309)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:273)
at com.example.bottombar.sample.CustomColorActivity.onCreate(CustomColorActivity.java:26)
at android.app.Activity.performCreate(Activity.java:5248)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

Users with the same issue

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

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