public class ExampleInstrumentedTest 报错

public class ExampleInstrumentedTest 报错_第1张图片
L9P}E88OLB7E$OY@$NIQ~XP.png

在 gradle 中添加

dependencies { 

androidTestCompile(
'com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})

testImplementation 'junit:junit:4.12'

}

android studio 2.3版本 需要加上

 androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})

你可能感兴趣的:(public class ExampleInstrumentedTest 报错)