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

前端 未结 15 2779
旧巷少年郎
旧巷少年郎 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:17

    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 :)

提交回复
热议问题