Android: getting Resources$NotFoundException for abc_ic_ab_back_material

后端 未结 7 2112
终归单人心
终归单人心 2020-12-19 02:31

I\'m getting a Resources$notfoundexception on older (pre-L) devices. I\'m including the full stacktrace below.

My version of the support library is the latest (24.1

7条回答
  •  一向
    一向 (楼主)
    2020-12-19 03:08

    Another solution,
    in addition to AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
    is to wrap your vector drawable into another drawable:

    
    
        
    
    

    Might be useful when you use as a drawable for a TextView (i.e. DrawableLeft)

提交回复
热议问题