Didn't find class "android.support.v7.widget.RecyclerView

后端 未结 6 493
走了就别回头了
走了就别回头了 2021-01-07 23:45

I\'m getting this exception when running:

android.view.InflateException: Binary XML file line #8: Error inflating class android.support.v7.widget.RecyclerView

6条回答
  •  耶瑟儿~
    2021-01-08 00:40

    In eclipse in your workspace, create a new project using the existing code, then select path to Recycler in android SDK support and in properties select compiler google API 20 or 21 and check Is Library.

    After that, in the workspace select your own project, right-click properties and go to android section and in library click add button and select your Recycler project from list.

    Next you must do clean all project from project menu .

    Sorry if my english is so bad but its ur solution and just adding suuport v7 as jar through errors its not like v4.

提交回复
热议问题