android.view.InflateException: Binary XML file line #12: Error inflating class

后端 未结 30 2297
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 13:48

I am receiving many errors of kind displayed in the subj. These errors seems to be occasional and I cannot reproduce them. From stack I can learn that such error may occurs

30条回答
  •  余生分开走
    2020-11-22 14:31

    I had same error when I ran my app on API lvl 16 (26 was fine). It was because I used ?attrr/colorAccent in my shape drawable:

    
    
    
        
    
        
    
    
    

    Replacing that with a regular color fixed my problem.

提交回复
热议问题