Android Studio – An abstract DAO method must be annotated with one and only one of the following annotations: Insert,Delete,Query,Update,RawQuery
@Dao interface ArticleDAO { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun upsert(article: Article) : Long @Query("SELECT * FROM articles") fun getAllArticles(): LiveData<List<Article>> @DELETE suspend fun deleteArticles(article: Article) } Hi! On running this code, I get the following error: An abstract DAO method…