Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView

前端 未结 3 1378
野性不改
野性不改 2021-01-18 03:27

I\'m trying to add BottomNavigationView to my layout with this library:

implementation \'com.google.android.material:material:1.0.0\'

3条回答
  •  一向
    一向 (楼主)
    2021-01-18 04:25

    Make sure that you put drawables in res/drawable folder and not in res/drawable-v24. I had a similar problem and by moving files to the res/drawable folder the error has gone.

提交回复
热议问题