Gradle step1 add the dependency in your build.gradle //better to replace new version implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' implementation 'io.reactivex.rxjava3:rxjava:3.0.0'