我在我的项目中使用了Gradle 2.12(或更高版本)以及相应版本的Android Gradle插件。 Gradle 2.12引入了compileOnly
配置,那么为什么在尝试使用它时会出现错误?
Could not find method compileOnly() for arguments
最佳答案
简单使用provided
代替compileOnly
参见https://github.com/google/auto/issues/324#issuecomment-212333044
关于gradle - 在Android项目中使用 'compileOnly'范围?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37805745/