在dependencies中添加
androidTestCompile('com.android.support:support-annotations:26.1.0') { force = true}
添加后的效果: