java.lang.Exception: Custom runner class AndroidJUnit4 should have a public constructor with signature AndroidJUnit4(Class testClass)

前端 未结 5 2078
执念已碎
执念已碎 2021-01-03 21:19

gradle looks like:

apply plugin: \'com.android.application\'

android {
    compileSdkVersion 25
    buildToolsVersion \"25.0.2\"

    defaultConfig {
              


        
5条回答
  •  悲&欢浪女
    2021-01-03 21:29

    In my case the problem was solved by putting the below line:

    @RunWith(AndroidJUnit4ClassRunner.class)
    

提交回复
热议问题