我有两个模块,support
和 mall
这是主入口模块的本地模块app
.
但在模块 mall
,我在 support
中引用了很多资源.
我刚用
compile
在模块 mall
build.gradle
中的依赖项包括support
我用了
compile
在模块 app
包括两个模块support
和 mall
.它可以找到。
我想升级using Gradle's new dependency configurations: implementation, api, compileOnly, and runtimeOnly .
但是当我在模块
mall
中使用 compileOnly 时,它对我不起作用包括support
依赖关系。
最佳答案
替换 compile
使用 implementation
的指令.compileOnly
gradle 3.0 中的指令没有改变,你不应该使用它。
关于gradle 3.0.* 的 Android 插件使用 Gradle 的新依赖配置 compileOnly 不使用资源引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47506024/