Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'

后端 未结 7 990
攒了一身酷
攒了一身酷 2021-01-03 20:33

This is my first time setting up an Android test project to test a Android project.

I\'ve created a very basic test case which I\'m trying to get to run, however wh

7条回答
  •  时光取名叫无心
    2021-01-03 20:53

    I got the same error because I forgot to add androidx.test:runner test dependency.

    androidTestImplementation "androidx.test:runner:1.2.0"
    

提交回复
热议问题