What is Gradle?
Gradle is a dependency management tool, based on the Groovy language, which is oriented toward Java applications, which discards the cumbersome configuration of XML-based, and replaces it with a groovy-based internal domain-specific (DSL) language.
Questions: about the Build.grade "Cannot is applied to ' (groovy.lang.Closure) ', the text is reversed, and an exception is reported, and if you run it directly, you can run, but for me the obsessive-compulsive person looks uncomfortable.
Workaround: It is possible because Gradle has the User local grade distribution option configured, and pointing to the local Gradle path address is incorrect, here are two solutions, go to preferences preferences, find Build-build Tools-gradle, you can directly select the Use default grade wrapper or select User local grade distribution, and then configure your correct Gradle path address.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Studio those things | ' cannot be applied to ' (groovy.lang.Closure)