Sam Mazza
Sam Mazza

Reputation: 1

AndoidX Lifecycle LiveData with Type arguments

I am having a problem with defining LiveData in DAO AndroidX Xamarin

I have added the AndroidX lifecycle LiveData nugets. I get CS0308 The non generic type LiveData cannot be used with Type arguments

[Query(Value = "SELECT * FROM note_table ORDER BY priority DESC")] LiveData<List<Note>> GetAllNotes();

Any advice on how to fix this?
enter image description here

I searched everywhere for a solution. Tried the CrossPlatform plugin described here: CrossplatformLiveData

Upvotes: 0

Views: 66

Answers (0)

Related Questions