Exception : android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.CardView

前端 未结 7 993
长情又很酷
长情又很酷 2020-12-16 23:54

I am using CardView of support library in my android app. I tried 4-5 hours to resolve this but i could not get success.

I have added CardView

7条回答
  •  生来不讨喜
    2020-12-17 00:37

    Support libs that contain resources other than compiled classes (like XMLs) cannot be added as just jars.

    Please follow the steps described by this:

    https://developer.android.com/tools/support-library/setup.html#libs-with-res

    Let us now if that works.

提交回复
热议问题