问题1:
导入了junit包却无法使用注解@RunWith
分析:
依赖有添加,查看Project面板下的External Libraries下的junit包有该类,如下图所示:
testCompile 'junit:junit:4.12'
考虑过是否是testCompile关键词的问题,后面发现是buildTypes使用了自定义配置:
解决方法:
暂时使用debug默认可使用@RunWith
问题2:
Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (25.3.1) and test app (25.4.0) differ. See http://g.co/androidstudio/app-test-app-conflict