I am trying to use RxJava 2 with Room ORM, but my code can not compile when I try to use RxJava 2.
Here is the code from Contacts Dao.
@Dao
public interface ContactsDao {
@Query("SELECT * FROM contact")
Flowable<List<Contact>> getAll();
@Insert(onConflict = REPLACE)
void insert(Contact contact);
}
How I can solve this?
EDIT: