方法java.io.File#<init>的方法重载

时间:2018-11-12 12:12:08

标签: android gradle

我收到以下错误信息。我已经使用了现有模块,现在出现了错误,在属性文件中正确配置了sdk路径。我已经重建并清理了项目,但没有找到解决方案。

    FAILURE: Build failed with an exception.

* Where:
Script 'url -script' line: 30

* What went wrong:
A problem occurred evaluating script.
> Ambiguous method overloading for method java.io.File#<init>.
  Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
    [class java.lang.String, class java.lang.String]
    [class java.io.File, class java.lang.String]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 33s

0 个答案:

没有答案