Cannot resolve symbol InstantTaskExecutorRule

前端 未结 6 1152
一整个雨季
一整个雨季 2020-12-30 18:44

I open example code BasicRxJavaSample (from this article Room+RxJava) The main thing is there:

@Rule
public InstantTaskExecutorRule instantTaskExecutorRule          


        
6条回答
  •  太阳男子
    2020-12-30 19:15

    I think that there is a conflict in some of the linked libraries. I got around this, I used blockingGet() and blockingFirst().

    and, in the end, I used https://developer.android.com/training/testing/junit-runner.html#using-android-test-orchestrator

    androidTestUtil 'com.android.support.test:orchestrator:1.0.1'
    

    this is what you need!

提交回复
热议问题