Error:Not sure how to convert a Cursor to this method\'s return type Error:Execution failed for task \':app:compileDebugJavaWithJavac\'. Compilation failed; see the
Modify your Dao, use Flowable instead of observable and add the following dependency (room with rxjava support)
compile group: 'android.arch.persistence.room', name: 'rxjava2', version: '1.1.1'
Dao returns flowable:
@Query("SELECT * FROM TableX") public abstract Flowable> getAllXs();