Error=Unable to find instrumentation info for: ComponentInfo{ }

后端 未结 7 1491
太阳男子
太阳男子 2021-01-31 15:00

I am trying to stand up espresso tests but I keep getting this error:

INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.mi         


        
相关标签:
7条回答
  • 2021-01-31 15:53

    Looking at your build.gradle file, the problem is actually that you don't have the following configuration in the defaultConfig section:

    testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
    

    Espresso requires GoogleInstrumentationTestRunner in order to work.

    Also with a gradle build system you shouldn't need an AndroidManifest.xml for the test project because it is auto generated.

    0 讨论(0)
提交回复
热议问题