TextViewのdrawableLeft
にベクターリソースを使用していたところ、Android4系でクラッシュしてしまいました。
エラーは以下の通り。
Caused by: android.view.InflateException: Binary XML file line #46: Error inflating class TextView
..略
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_info_outline_grey_700_24dp.xml from drawable resource ID #0x7f0700e3
回避方法はAppCompatTextView
をTextView
の代わりに使用して、 app:drawableLeftCompat
でリソースを指定すること。