新建一个项目,总是提示下列错误:
原因:由于依赖包冲突;
解决方式:
在build.gradle文件中(app)
dependencies {
//添加如下代码即可
androidTestCompile('com.android.support:support-annotations:26.+') {
force = true
}
}
欢迎关注个人公众号(生活与认知):
图片地址:https://i-blog.csdnimg.cn/blog_migrate/a33e03b6d30e38f9e144769d09078c0e.jpeg