Android XML: RuntimeException: Failed to resolve attribute at index 6

后端 未结 10 1917
梦如初夏
梦如初夏 2020-12-01 23:44

Hello dear stackoverflower,

In my project, i am using the new \"android design library\". The problem is, that there is a runtime exception which says(Im trying to c

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 23:57

    Ran into this problem myself. It's because my app isn't using AppCompat yet, still just the regular support FragmentActivity. This means that FloatingActionButton was looking for two theme attributes and it couldn't find them.

    Specifically adding in these missing attributes made it work for me without the need to start using AppCompat.

    
    
        
    
    
    

提交回复
热议问题