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

tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    App keeps Crashing on startup

    Stack Overflow | 2 months ago | Newton O. Kisia
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bromn.mountkenyauni/com.example.bromn.mountkenyauni.activity.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
    samebug tip
    Try setting windowActionBar to false with "<item name="windowActionBar">false</item>" or change Theme.AppCompat.Light.DarkActionBar to Theme.AppCompat.Light.NoActionBar in your styles.xml
  3. 0

    Please Resolve my Issues

    Stack Overflow | 6 months ago | Anuj Awasthi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mps2.rajanchalapps/com.example.mps2.rajanchalapps.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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to navigate from activity class to Navigation Drawer in Android Studio?

    Stack Overflow | 3 months ago | Duaa
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.a1.example/com.example.a1.example.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.
  6. 0

    android image gridview using fragments

    Stack Overflow | 8 months ago | noopur tanwar
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.mymovieapp/com.example.android.mymovieapp.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 7 times, last 2 months ago
  2. andreeaa marin 184 times, last 3 months ago
  3. Reich 59 times, last 4 months ago
  4. gamebusterz 42 times, last 1 month ago
  5. Emrah Küçük 3 times, last 4 months ago
42 more registered users
14 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.RuntimeException

    Unable to start activity ComponentInfo{com.example.bromn.mountkenyauni/com.example.bromn.mountkenyauni.activity.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()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames