Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

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

Open
398049343 opened this issue Sep 1, 2020 · 4 comments

Comments

@398049343
Copy link

Device

  • HONOR 6 Plus
  • Android 4.4.2

Issue description

  • During the process of using the new version to obtain the Manifest.permission.READ_CONTACTS permission, the log is as follows, and the APP does not crash at this time.
implementation 'com.github.tbruyelle:rxpermissions:0.12'
implementation 'io.reactivex.rxjava3:rxjava:3.0.6'
09-01 10:27:23.624 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableFirstStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.firstOrErrorStage
09-01 10:27:23.624 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableFirstStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.firstStage
09-01 10:27:23.629 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableLastStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.lastOrErrorStage
09-01 10:27:23.629 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableLastStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.lastStage
09-01 10:27:23.639 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableSingleStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.singleOrErrorStage
09-01 10:27:23.644 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableSingleStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.singleStage
09-01 10:27:23.769 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.FlowableFirstStageSubscriber', referenced from method io.reactivex.rxjava3.core.Flowable.firstOrErrorStage
09-01 10:27:23.769 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.FlowableFirstStageSubscriber', referenced from method io.reactivex.rxjava3.core.Flowable.firstStage
09-01 10:27:23.774 9968-9968/com.XXXXXXX.XXXXXX E/dalvikvm: Could not find class 'io.reactivex.rxjava3.internal.jdk8.FlowableLastStageSubscriber', referenced from method io.reactivex
  • After I switched back to the old version, the above log did not appear again. The old version is as follows:
implementation "io.reactivex.rxjava2:rxjava:2.2.19"
implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
  • How can I clear the above log?
@398049343 398049343 changed the title Bug Could not find class 'io.reactivex.rxjava3.internal.jdk8.ObservableFirstStageObserver', referenced from method io.reactivex.rxjava3.core.Observable.firstOrErrorStage Sep 1, 2020
@IvesWang
Copy link

IvesWang commented Sep 6, 2020

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

@galuszkak
Copy link
Collaborator

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?

@398049343
Copy link
Author

398049343 commented Sep 15, 2020

@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

@398049343
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants