This Activity already has an action bar supplied by the window decor

后端 未结 21 2322
-上瘾入骨i
-上瘾入骨i 2020-11-21 23:45

Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying

java.lang.RuntimeException: Unable to start         


        
21条回答
  •  逝去的感伤
    2020-11-22 00:33

    Add this in your values/styles.xml

    
    
    
    
    
    

    And add the following code in your values-v11/styles.xml and values-v14/styles.xml

    
    

    Thats it. It will work.

提交回复
热议问题