Conflict with dependency support-annotations

拜拜、爱过 提交于 2020-02-28 11:41:58

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'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!