Android 管理多个模块中的冗余依赖项
我已经阅读了一些与我的问题相关的答案,但这些并没有真正回答我的问题 我有一个这样的项目 计划Android 管理多个模块中的冗余依赖项,android,kotlin,dependencies,build.gradle,Android,Kotlin,Dependencies,Build.gradle,我已经阅读了一些与我的问题相关的答案,但这些并没有真正回答我的问题 我有一个这样的项目 计划 应用程序 某些模块 模 模B 模数 moduleA具有主要功能,因此其他模块都指向这一点 build.gradle(应用程序) build.gradle(模块a) build.gradle(模块B) build.gradle(moduleC) 由于相同的依赖关系存在于多个模块中,因此我希望在一个地方管理公共依赖关系 有一些答案说,在父模块(在本例中为moduleA)的build.gra
- 应用程序
- 某些模块
- 模
- 模B
- 模数
implementation project(':moduleA')
implementation project(':moduleB')
implementation project(':moduleC')
androidTestImplementation "junit:junit:4.13"
testImplementation "junit:junit:4.13"
androidTestImplementation "androidx.test.ext:junit:4.13"
androidTestImplementation "junit:junit:4.13"
testImplementation "junit:junit:4.13"
androidTestImplementation "androidx.test.ext:junit:4.13"
implementation project(':moduleA')
androidTestImplementation "junit:junit:4.13"
androidTestImplementation "androidx.test.ext:junit:4.13"
implementation project(':moduleA')
androidTestImplementation "junit:junit:4.13"
testImplementation "junit:junit:4.13"