问题描述
我想在我的项目中使用tbruyelle
RxPermissions库。我无法像这里一样调用subcribe
方法
rxPermissions
.request(Manifest.permission.ACCESS_FINE_LOCATION)
.subscribe(granted -> {
if (granted) {
} else {
}
});
Cannot access class 'io.reactivex.rxjava3.core.Observable'. Check your module classpath for missing or conflicting dependencies
我的build.gradle
repositories {
//For YandexMap
maven { url "http://maven.google.com/" }
//For RxPermission
maven { url 'https://jitpack.io' }
}
// rx - network
implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
// rx
implementation 'io.reactivex.rxjava2:rxjava:2.2.20'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
//RxPermission
implementation 'com.github.tbruyelle:rxpermissions:0.12'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)