Could not find method compile() for arguments Gradle

后端 未结 8 920
一整个雨季
一整个雨季 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条回答
  •  萌比男神i
    2020-12-02 22:12

    compile is a configuration that is usually introduced by a plugin (most likely the java plugin) Have a look at the gradle userguide for details about configurations. For now adding the java plugin on top of your build script should do the trick:

    apply plugin:'java'
    

提交回复
热议问题