美文网首页
AS排除不需要的依赖的解决办法

AS排除不需要的依赖的解决办法

作者: CarlosLynn | 来源:发表于2020-11-13 21:27 被阅读0次

1,例如排除rxjava2和timber,分别进行如下配置即可.

configurations {
    all*.exclude group: 'io.reactivex.rxjava2'
}

configurations {
    all*.exclude group: 'com.jakewharton.timber'
}

dependencies {
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'com.qihoo360.replugin:replugin-host-lib:2.3.4'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.zxn.mvvm:jetpackmvvm:1.0.4'
    implementation 'com.blankj:utilcode:1.29.0'
    //implementation 'com.tencent:mmkv:1.0.22'
    implementation 'com.tencent:mmkv-static:1.2.4'
    implementation 'com.zxn.fuzzysearch:fuzzysearch:1.0.4'

    implementation 'io.reactivex.rxjava3:rxjava:3.0.4'
    implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
    
    implementation 'com.hwangjr.rxbus:rxbus:2.0.1'
}

相关文章

网友评论

      本文标题:AS排除不需要的依赖的解决办法

      本文链接:https://www.haomeiwen.com/subject/mdibbktx.html