tbruyelle / RxPermissions

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

Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableFirstStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.firstOrErrorStage #332

Open ghost opened 4 years ago

ghost commented 4 years ago

Device

IvesWang commented 4 years ago

use 3.0.4 is ok, may have been removed some classes in 3.0.6

galuszkak commented 4 years ago

Hi @IvesWang @398049343 ,

This is available in RxJava 3.0.6 so this is probably something else. (see here: https://github.com/ReactiveX/RxJava/blob/v3.0.6/src/main/java/io/reactivex/rxjava3/internal/jdk8/ObservableFirstStageObserver.java) @398049343 can you prepare minimum working example and post somewhere the code so we can look at it?

ghost commented 4 years ago

@galuszkak The code is very simple, but the above log will appear on this model.But it won't lead to any collapse.

class MainActivity : AppCompatActivity() {
    lateinit var mBinding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_main)
        setContentView(mBinding.root)
        btn.setOnClickListener {
            RxPermissions(this).request(Manifest.permission.CAMERA)
                .subscribe {

                }
        }
    }
}
// RxJava
implementation 'io.reactivex.rxjava3:rxjava:3.0.6'
// RxPermissions
implementation 'com.github.tbruyelle:rxpermissions:0.12'

Huawei mobile phones always have strange problems

ghost commented 4 years ago

@IvesWang The log will also appear in version 3.0.4. Huawei's mobile phone system is very strange