tbruyelle / RxPermissions

Android runtime permissions powered by RxJava2
Apache License 2.0
10.48k stars 1.31k forks source link

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

Closed ywoods closed 4 years ago

ywoods commented 4 years ago

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

Lib Version

andrid studio 4.0.1 rxpermissions:0.12

ywoods commented 4 years ago

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