Android studio中报错Conflict with dependency 'com.android.support:support-annotations'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq77485042/article/details/81232974

使用Android studio开发中出现Conflict with dependency’com.android.support:support-annotations’错误的时候只需要在build.gradle中加入

configurations.all {
    resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
}

注意这个是和android平级的

android {
...
}

猜你喜欢

转载自blog.csdn.net/qq77485042/article/details/81232974