recyclerview No adapter attached; skipping layout

Can you make sure that you are calling these statements from the “main” thread outside of a delayed asynchronous callback (for example inside the onCreate() method). As soon as I call the same statements from a “delayed” method. In my case a ResultCallback, I get the same message.

In my Fragment, calling the code below from inside a ResultCallback method produces the same message. After moving the code to the onConnected() method within my app, the message was gone…

LinearLayoutManager llm = new LinearLayoutManager(this);
llm.setOrientation(LinearLayoutManager.VERTICAL);
list.setLayoutManager(llm);
list.setAdapter( adapter );

Leave a Comment