'dependencies' cannot be applied to '(groovy.lang.Closure)'

前端 未结 15 2808
旧巷少年郎
旧巷少年郎 2020-11-30 01:28

I am unable to fix this error:

dependencies cannot be applied to \'(groovy.lang.Closure)

This is my gradle file:

buildscrip         


        
15条回答
  •  伪装坚强ぢ
    2020-11-30 02:11

    I went into the preferences to try one of the other answers when I noticed a warning that my gradle home directory was wrong. So I opened up the file browser and chose the newer gradle version, and all the errors went away. Image shown below.

提交回复
热议问题