java.lang.RuntimeException: Unable to start activity ComponentInfo{com.princekumar.test/com.princekumar.test.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.

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 codegur.us by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.princekumar.test/com.princekumar.test.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
via GitHub by tinybright
, 10 months ago
Unable to start activity ComponentInfo{com.example.gitnb/com.example.gitnb.module.GitHubAuthorizeActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
via Stack Overflow by Anas Mohtasib
, 1 year ago
Unable to start activity ComponentInfo{com.subhi.hccc/com.subhi.hccc.HomePage}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
via Stack Overflow by Vyan Garcia
, 1 year ago
Unable to start activity ComponentInfo{com.example.pcuser.iwoods/com.example.pcuser.iwoods.UserProfile}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
via GitHub by baltazarAvave
, 10 months ago
Unable to start activity ComponentInfo{com.herprogramacion.pedidos/com.herprogramacion.pedidos.ui.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
via GitHub by hnyzwtf
, 1 year ago
Unable to start activity ComponentInfo{com.xiecc.seeWeather/com.xiecc.seeWeather.modules.main.ui.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.princekumar.test/com.princekumar.test.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
at android.support.v7.app.AppCompatDelegateImplV7.setSupportActionBar(AppCompatDelegateImplV7.java:197)
at com.princekumar.test.MainActivity.onCreate(MainActivity.java:22)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)

Users with the same issue

3 times, 1 year ago
Once, 1 month ago
34 times, 5 months ago
2 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
11 more bugmates

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