With Android Studio 1.1 and having also the gradle version at 1.1 it is possible:
Library
android {
publishNonDefault true
}
App
dependencies {
releaseCompile project(path: ':library', configuration: 'release')
debugCompile project(path: ':library', configuration: 'debug')
}
本文介绍如何使用Gradle在Android Studio中配置项目依赖,通过特定设置实现不同构建类型的库依赖管理。示例展示了如何在App模块中指定debug和release版本分别引用对应配置的库模块。
1860

被折叠的 条评论
为什么被折叠?



