java.lang.RuntimeException: Unable to start activity ComponentInfo{com.asoft.admin.anto_tab/com.asoft.admin.anto_tab.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)

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 Stack Overflow by Akhil
, 1 year ago
Unable to start activity ComponentInfo{com.asoft.admin.anto_tab/com.asoft.admin.anto_tab.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request
via Stack Overflow by ali khalife soltani
, 1 year ago
Unable to start activity ComponentInfo{com.ali.searchfiles/com.ali.searchfiles.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
via Stack Overflow by Mahmud Hasan
, 1 year ago
Unable to start activity ComponentInfo{daffodilvarsity.edu.bd.studentportal/daffodilvarsity.edu.bd. studentportal.MapsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void
via Stack Overflow by Vijay
, 1 year ago
Unable to start activity ComponentInfo{com.naran.whacko/com.naran.whacko.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setVisibility(int)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
via Stack Overflow by sushi7777
, 1 year ago
Unable to start activity ComponentInfo{com.example.suzan.parentmeetme/com.example.suzan.parentmeetme.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
via Stack Overflow by Rohan Dalvi
, 2 years ago
Unable to start activity ComponentInfo{org.example.helloandroid/org.example.helloandroid.QRGenActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.asoft.admin.anto_tab/com.asoft.admin.anto_tab.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, 11 months ago
4 times, 1 year ago
232 times, 1 year ago
70 more bugmates

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