java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.harsimar.tabswithswipableviews/com.example.harsimar.tabswithswipableviews.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

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 Simar
, 1 year ago
Unable to start activity ComponentInfo{com.example.harsimar.tabswithswipableviews/com.example.harsimar.tabswithswipableviews.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 Stack Overflow by Shayan D
, 1 year ago
Unable to start activity ComponentInfo{com.shahinsoft.snote/com.shahinsoft.snote.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 Stack Overflow by Sir George
, 11 months ago
Unable to start activity ComponentInfo{com.example.moses.nganya/com.example.moses.nganya.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 Stack Overflow by Wawan Fintara
, 11 months ago
Unable to start activity ComponentInfo{com.breakthrough.myapplication22/com.breakthrough.myapplication22.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 Stack Overflow by Martin
, 11 months ago
Unable to start activity ComponentInfo{com.example.marcin.wirtualnyportfel/com.example.marcin.wirtualnyportfel.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 Stack Overflow by Michael Julyus Christopher M.
, 7 months ago
Unable to start activity ComponentInfo{com.michael.apps.sportshi/com.michael.apps.sportshi.activity.activity_B}: 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.example.harsimar.tabswithswipableviews/com.example.harsimar.tabswithswipableviews.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.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

22 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 6 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
15 times, 1 year ago

Write tip

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