Gradle 配置.all 模棱两可 [英] Gradle configurations.all ambiguous

查看:59
本文介绍了Gradle 配置.all 模棱两可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 android studio 和 gradle 来构建我的项目.自从我发布了 gradle 插件 12,我的 build.gradle 中有一个警告.Gradle 不想再强制检查依赖项更新了.

I use android studio and gradle to build my project. Since I've released gradle plugin 12, I have a warning in my build.gradle. Gradle does not want to force checking dependencies update any more.

这是我的 build.gradle 警告行:

This is my build.gradle warning lines :

configurations.all {
    // check for updates every build
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

消息是方法调用不明确"

The message is "Method call is ambiguous"

推荐答案

这是我刚刚在这里报告的 IntelliJ (Android Studio) Gradle 插件中的一个错误:https://youtrack.jetbrains.com/issue/IDEA-141744.警告是错误的,一切都应该按预期正常工作.

This is a bug in the IntelliJ (Android Studio) Gradle plugin that I just reported here: https://youtrack.jetbrains.com/issue/IDEA-141744. The warning is wrong and everything should work fine as expected.

这篇关于Gradle 配置.all 模棱两可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆