recyclerview No adapter attached; skipping layout

后端 未结 30 3152
走了就别回头了
走了就别回头了 2020-11-21 04:51

Just implemented RecyclerView in my code, replacing ListView.

Everything works fine. The data is displayed.

But error messages are

30条回答
  •  广开言路
    2020-11-21 05:10

    This is really a simple error you are getting, there in no need of doing any codes in this. This error occurs due to the wrong layout file used by the activity. By IDE i automatically created a layout v21 of a layout which became a default layout of the activity. all codes I did in the old layout file and new one was only having few xml codes, which led to that error.

    Solution: Copy all codes of old layout and paste in layout v 21

提交回复
热议问题