Idea reports Cannot compile Groovy files: no Groovy library is defined for module & #039; xx & #039;, compilegroovy

Source: Internet
Author: User

Idea error Cannot compile Groovy files: no Groovy library is defined for module 'XX', compilegroovy
0. Cause description

Clone the original project (the new project is generally not available)
IntelliJ IDEA associates objects suffixed with groovy but does not configure Groovy libraries.

1. Solution to cause 1

Cause: Groovy, which is not required in this project, is associated with a groovy file.
Fang Zi: remove the groovy extension.
Result: Good. This is basically the case on the Internet.
Remove the red box and apply

2. Solution to cause 2

Cause: the project requires groovy library.
Fang Zi: Configure groovy library.
Steps:
① Download groovy library

② Decompress the package (select a favorite directory, and the best directory path is full of English)
③ Configure groovy library: File-> Project Structure-> Modules-> Groovy-> Add Groovy Support-> select Groovy library and then apply.


Quick configuration entry: If IDEA has the following prompt, it is best-convenient. Click Configuration Groovy SDK.

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.