Cannot resolve symbol InstantTaskExecutorRule

前端 未结 6 1155
一整个雨季
一整个雨季 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:31

    Please put this two dependencies in your gradle file,

    dependencies {
    
        // Test helpers for LiveData
        testImplementation "android.arch.core:core-testing:1.0.0"
    
        // Test helpers for Room
        testImplementation "android.arch.persistence.room:testing:1.0.0"
    }
    

    Further information please go through this link, Android Architecture components integration guide

提交回复
热议问题