I am unable to fix this error:
dependencies cannot be applied to \'(groovy.lang.Closure)
This is my gradle file:
buildscrip
I bet you the problem is totally unrelated to the piece of code that is giving you warnings, most likely it's your proguard file. I had the following in my code and got the same warning:
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
By commenting out runProguard false
, all of my problems go away, go figure :)