A Groovy project importing problem - unable to create a Java or Groovy class

After importing a Groovy Intellij Idea project which is cloned from a Git server, I can't create a new Java or Groovy class. After right clicking a package and selecting "new", the pop-up menu doesn't include the options of Java class nor Groovy class. If I fake a Groovy class file, the class can't be complied.

How to solve this problem?

p.s. I am new to this IDE and use Eclipe mostly.

Please sign in to leave a comment.