as强制过滤指定依赖版本库,解决该依赖不同版本冲突

复制代码
configurations.all {
    resolutionStrategy {
        eachDependency { details ->
            if (details.requested.group == 'com.eebbk.askhomework.content') {
                if (details.requested.name == 'module_character' || details.requested.name == 'module_bs_word') {
                    details.useVersion '2.5.2.0.fs.01'
                }
            }
        }
    }
}

把这段代码放在Application的build.gradle中,如下:

相关推荐
_李小白4 分钟前
【Android FrameWork】实战:跟踪Android APP Surface创建流程
android
2501_9159184118 分钟前
iOS 性能监控 运行时指标与系统行为的多工具协同方案
android·macos·ios·小程序·uni-app·cocoa·iphone
愤怒的代码24 分钟前
深入理解ThreadLocal
android·java·源码
没有了遇见35 分钟前
Android 独立开发痛点之静态Html Github放置
android
Kapaseker1 小时前
四大组件齐上阵,轻松拿捏实习生
android·kotlin
00后程序员张1 小时前
IPA 混淆技术全解,从成品包结构出发的 iOS 应用安全实践与工具组合
android·安全·ios·小程序·uni-app·cocoa·iphone
Just_Paranoid1 小时前
【Android UI】Android Drawable XML 标签解析
android·ui·vector·drawable·shape·selector
都是蠢货1 小时前
mysql中null是什么意思?
android·数据库·mysql
Just_Paranoid1 小时前
【Android UI】Android 创建渐变背景 Drawable
android·ui·drawable·shape·gradient
千里马学框架1 小时前
AI豆包手机权限文章补充:Mainfest中某个权限的protectionLevel具体是如何被系统定义的?
android·智能手机·framework·权限·protectionlevel