Recyclerview No adapter attached skipping layout

0 votes

I replaced ListView with RecyclerView in my code. Everything works fine but an error message is shown.

15:25:53.476 E/RecyclerView: No adapter attached; skipping layout

15:25:53.655 E/RecyclerView: No adapter attached; skipping layout
 

Code:

ArtistArrayAdapter adapter = new ArtistArrayAdapter(this, artists);
recyclerView = (RecyclerView) findViewById(R.id.cardList);
recyclerView.setHasFixedSize(true);
recyclerView.setAdapter(adapter);
recyclerView.setLayoutManager(new LinearLayoutManager(this));

Why do I keep getting this error?

Apr 28 in Other DevOps Questions by Kichu
• 16,850 points
140 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers

Eclipse/Maven error: "No compiler is provided in this environment"

I want to deploy my first modification ...READ MORE

Apr 28 in Other DevOps Questions by Kichu
• 16,850 points
20 views
0 votes
0 answers
0 votes
0 answers

This application has no explicit mapping for /error

I used maven to follow the tutorial: https://spring.io/guides/gs/uploading-files/ step ...READ MORE

Apr 29 in Other DevOps Questions by Kichu
• 16,850 points
70 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
2,940 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,060 points
1,474 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! An example via Matt Cutts via SL4A -- "here’s ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,060 points
377 views
0 votes
1 answer

How can we get the current location in Android?

First you need to define a LocationListener to handle ...READ MORE

answered Sep 25, 2018 in Java by Parth
• 4,630 points
350 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP