andriod studio-Conflict with dependency-org.gradle.api.GradleException
Error:org.gradle.api.GradleException: Conflict with dependency 'com.android.support:support-annotations' in project ':app'.
Resolved versions for app (21.0.3) and test app (27.1.1) differ.
See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
app/build.gradle
configurations.all {//处理com.android.support:support-v4:21.0.3 和test包的27.1.1兼容
resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
}
正文到此结束
- 本文标签: 安卓 AndriodStudio
- 本文链接: https://code.jiangjiesheng.cn/article/178
- 版权声明: 本文由小江同学原创发布,转载请先联系本站长,谢谢。