question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paging : Not sure how to convert a Cursor to this method's return type

See original GitHub issue

I am getting error for LivePagedListProvider Return type while compiling

Error:(22, 58) error: Not sure how to convert a Cursor to this method’s return type

@Dao
public interface UserDao {
    @Query("SELECT * FROM user")
    public abstract LivePagedListProvider<Integer, User> getAllPagination();
}

How to resolve this issue i have setup everything correct as per the sample documentation

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
dlamcommented, Jul 31, 2020

PagingSource was added in Room 2.3.0-alpha01+

5reactions
liodalicommented, Jul 30, 2020

i have the same problem with paging 3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Paging3: "Not sure how to convert a Cursor to this method's ...
Paging3: "Not sure how to convert a Cursor to this method's return type" when using PagingSource as return type in Room DAO.
Read more >
Error: Not sure how to convert a Cursor to this method's return ...
Error: Not sure how to convert a Cursor to this method's return type. error: Not sure how to convert a Cursor to this...
Read more >
Android : Room "Not sure how to convert a Cursor ... - YouTube
Android : Room " Not sure how to convert a Cursor to this method's return type ": which method ?
Read more >
Java – Paging Compile Issue : Not sure how to convert a ...
Android – Room “Not sure how to convert a Cursor to this method's return type”: which method. Recently I've had the same problem...
Read more >
Paging Compile Issue : Not sure how to convert a Cursor to ...
Coding example for the question Paging Compile Issue : Not sure how to convert a Cursor to this method's return type-android-Java.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found