FrangSierra/RxFirebase

Cannot reslove method 'subscribe'

Abadulrehman opened this issue · 1 comments

Hi all. When trying to run the simple observeSingleValueEvent method from the documentation, AndroidStudio gives me the following error.
Issue

Could anybody lead me as to where or what I am doing wrong?

It looks that you are importing RxFirebase to your gradle project, but you are not adding RxJava aswell. For that reason subscribe method is not in your project.

implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.0.8'