Android dependency has different version.You should manually set the same version via DependencyReso
君不见长松卧壑困风霜,时来屹立扶明堂。这篇文章主要讲述Android dependency has different version.You should manually set the same version via DependencyReso相关的知识,希望能为你提供帮助。
有时候导入一些module时,会出现以下问题
android dependency ‘com.android.support:support-v4‘ has different version for the compile (23.3.0) and runtime (25.4.0) classpath. You should manually set the same version via DependencyResolution
- 1
【Android dependency has different version.You should manually set the same version via DependencyReso】解决办法
在项目根目录的build.gradle中加入以下代码
将details.useVersion后的值替换为统一的版本.
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == ‘com.android.support‘
&
&
!details.requested.name.contains(‘multidex‘) ) {
//统一版本号
details.useVersion "25.4.0"
}
}
}
}
推荐阅读
- 移动端之Web及app设计尺寸
- Android开发教程 - 使用Data Binding使用BindingAdapter简化图
- Android开发教程 - 使用Data Binding使用自定义Interface
- Android国际化-图片国际化和文本字符国际化
- 使用H5搭建webapp主页面
- android jni控制gpio (rk3288)
- [译]Android view 测量布局和绘制的流程
- eclipse java项目转idea java项目Invalid bound statement (not found): com.mapper 报错问题
- vsphere6.0故障(关于vCenter Appliance6.0磁盘爆满和WEB503错误问题)