将以下代码添加到gradle(module) dependencise中

androidTestCompile 'com.android.support:support-annotations:xx.x.x'

xx.x.x表示错误提示中的测试版本号

相关文章: