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.

codegur.us | 5 months ago
  1. 0

    ActionBarActivity is deprecated, for toolbar, i Used Toolbar class. It show java.lang.IllegalStateException

    codegur.us | 5 months ago
    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.
  2. 0

    Android App Crashing at setSupportActionBar

    Stack Overflow | 1 year ago | Rohan Khajuria
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.rkhaj.tabstest/com.example.rkhaj.tabstest.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.
  3. 0

    Having non-solvable error while attempting the sliding tab view with toolbar <This Activity already has an action bar supplied by the window decor>

    Stack Overflow | 1 year ago | RUTURAJ Raval
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rrr.seasonsgreetings/com.rrr.seasonsgreetings.Greetings}: 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Scrollable tabs in android error

    Stack Overflow | 8 months ago | Anas Mohtasib
    java.lang.RuntimeException: 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.
  6. 0

    Setting Android toolbar causes the program to fail

    Stack Overflow | 1 year ago | Sandah Aung
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dynamicwebapac.commerce.mobile/com.dynamicwebapac.commerce.mobile.activities.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.

  1. Indri Yunita 2 times, last 7 days ago
  2. maxxi 4 times, last 1 month ago
  3. ivotje50 4 times, last 3 months ago
  4. Mathan Chinna 1 times, last 4 months ago
  5. adawolfs 2 times, last 4 months ago
4 more registered users
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android v7
    AppCompatActivity.setSupportActionBar
    1. android.support.v7.app.AppCompatDelegateImplV7.setSupportActionBar(AppCompatDelegateImplV7.java:197)
    2. android.support.v7.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:99)
    2 frames
  3. com.princekumar.test
    MainActivity.onCreate
    1. com.princekumar.test.MainActivity.onCreate(MainActivity.java:22)
    1 frame
  4. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5231)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
    3 frames