tbruyelle/RxPermissions

Cannot resolve method 'subscribe(<lambda expression>)'

ywoods opened this issue · 1 comments

Issue description

when I copy the sample code to AS,I get this issue.
I tried to break it to two part,then a new issue raised.
Then I tried to import "io.reactivex.rxjava3.core.Observable",but there is no class found.

Observable ob = rxPermissions.request(Manifest.permission.INTERNET);
ob.subscribe(granted -> {
...
Required type:
java.util.Observable
Provided:
io.reactivex.rxjava3.core.Observable<java.lang.Boolean>

Lib Version

andrid studio 4.0.1
rxpermissions:0.12

implementation 'io.reactivex.rxjava3:rxjava:3.0.0'