Could not find method compile() for arguments Gradle

后端 未结 8 912
一整个雨季
一整个雨季 2020-12-02 21:29

Looked around for this solution for much too long now, and I\'m not sure if I missed it or just misstyped something, but my Gradle script will not compile. I am migrating to

相关标签:
8条回答
  • 2020-12-02 22:32

    It should be exclude module: 'net.milkbowl:vault:1.2.27'(add module:) as explained in documentation for DependencyHandler linked from http://www.gradle.org/docs/current/javadoc/org/gradle/api/Project.html#dependencies(groovy.lang.Closure) because ModuleDependency.exclude(java.util.Map) method is used.

    0 讨论(0)
  • 2020-12-02 22:35

    In my case, all the compile statements has somehow arranged in a single line. separating them in individual lines has fixed the issue.

    0 讨论(0)
提交回复
热议问题