Gradle 基础

309 阅读1分钟
指定某 library 中排序 xxx 模块的依赖
implementation('com.journeyapps:zxing-android-embedded:3.6.0') {
	exclude group: 'com.google.code.gson', module: 'gson'
}

指定工程模块下 library 强制使用 xxx 版本

configurations.all {
    resolutionStrategy {
        force "com.google.code.gson:gson:2.6.2"
    }
}