Montag, 17. Oktober 2016

Could not find method groovy() for arguments

 Could not find method groovy() for arguments


If you encounter the error message Could not find method groovy() for arguments  e.g. in IntelliJ or running Gradle directly, there is a quick solution, but you migh not like is:


The groovy configuration has been deprecated and is scheduled to be removed in Gradle 2.0. Typically, usages of 'groovy' can simply be replaced with 'compile'. In some cases, it may be necessary to additionally configure the 'groovyClasspath' property of GroovyCompile and Groovydoc tasks."

Basically this means you go back to the latest Gradle 1.* or you simply update your gradle scripts.

It might also be, you have accidentally a normal IntelliJ project in AndroidStudio :-)