tbruyelle / RxPermissions

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

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

Closed ywoods closed 3 years ago

ywoods commented 3 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 3 years ago

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