Android KitKat: android.view.InflateException: Error inflating class android.support.design.widget.NavigationView

后端 未结 4 1561
日久生厌
日久生厌 2020-12-17 04:08

Below is my configuration. This works on Android Lollipop but crash on Android Kitkat.

I tried every workaround here but can\'t help:
Error inflating class and

4条回答
  •  [愿得一人]
    2020-12-17 04:29

    Option 1: Make sure that the file names matches- "@mipmap/icon.png" nd "@mipmap/icon.xml"

    Option 2: In the degub window u will see the Resource id as : r-0X000fd something.... go to the R file nd check for this resource due to which the error is generated....

    To do so : C:\Users\akshyata\Desktop\FoodSanta_Folders\FoodSanta\app\build\generated\source\r\debug\'your_package_name'\R.java

    Open the R file in notepad nd do "CTRL+F" nd type the resource id. You will find the resource which generated the error...GO nd solve the error

    Happy Coding

提交回复
热议问题