Android Studio 3.0 Canary 7 已发布,更新如下: 指定匹配的构建类型。如果消费者(例如一个 app 模块)定义了生产者依赖关系中不存在的构建类型(例如库模块),variant-aware 的依赖性解析模型将不知道要使用哪个版本的生产者,而你的构建会失败并显示以下的错误信息: Error:Failed to resolve: Could not resolve project :mylibrary. Required by: project :app 现在,可以使用 android.buildTypeMatching 属性指定消费者应该使用的构建类型替代方案,如下所示。该插件仅在没有找到匹配的构建类型时使用替代的构建类型。 android {
…
// Let’s say your app configures a ‘staging’ build type and a library module
// it depends on does not. You can use the property below to tell the Android plugin
// to use a library’s ‘debug’ build type instead.
buildTypeMatching ‘staging’, ‘debug’
} 除此之外,该版本还修复了一些用户反馈的错误:
下载地址:
|