Android Studio those things | ' cannot be applied to ' (groovy.lang.Closure)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.