首页 > 移动平台 > 详细

android studio 编译 Android dependency has different version

时间:2019-08-04 21:00:52      阅读:206      评论:0      收藏:0      [点我收藏+]

找了一圈,终于在大佬的博客中找到了解决方法。

附链接:https://blog.csdn.net/u010725171/article/details/81232183

Android dependency has different version for the compile and runtime

在module的外层的build.gradle中添加

subprojects {
        project.configurations.all {
            resolutionStrategy.eachDependency { details ->
                if (details.requested.group == ‘com.android.support‘
                        && !details.requested.name.contains(‘multidex‘) ) {
                    details.useVersion ‘28.0.0‘ //这个版本号设置为你想要的版本
                }
            }
        }
    }

技术分享图片

android studio 编译 Android dependency has different version

原文:https://www.cnblogs.com/fightKun/p/11299566.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!