Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ.
支持包与测试包的冲突,
解决方法
androidTestImplementation ('com.android.support.test:runner:1.0.2',{
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation ('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
添加 exclude group: 'com.android.support', module: 'support-annotations'
来源:oschina
链接:https://my.oschina.net/u/3136970/blog/1839123