【发布时间】:2017-11-27 07:46:47
【问题描述】:
我有两个模块,support 和 mall,这是主入口模块 app 的本地模块。
但是在模块mall 中,我在support 中引用了很多资源。
- 在 gradle 3.0 的 android 插件之前:
我只是在模块 mall 中使用了 compile 在 build.gradle 中的依赖项来包含 support
我在模块app 中使用compile 来包含两个模块support 和mall。
它可以找到。
- 在 gradle 3.0 的 android 插件之后:
我想升级using Gradle's new dependency configurations: implementation, api, compileOnly, and runtimeOnly。
但是当我在模块 mall 中使用 compileOnly 来包含 support 依赖项时,它对我不起作用。
【问题讨论】: