Android Gradle 去除重复依赖

Android Gradle About 250 words

使用 exclude 去除重复依赖

使用gradlew查看依赖关系

dependencies {
    implementation('log4j:log4j:1.2.15') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
}

参考

https://docs.gradle.org/current/userguide/managing_transitive_dependencies.html

Views: 3,836 · Posted: 2019-05-28

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh