3

I'm building a java project with IntelliJ IDEA 2018.1.5 (Community Edition) with the following errors: IntelliJ errors

However, if I build with ./gradlew build --x test, it is OK. I've tried all methods here, but still no luck. Any suggestions?

6
  • Use the gralde integration in intelliJ. Commented Jun 21, 2018 at 21:34
  • Delete .idea directory and reimport the project from Gradle. If the issue persists, report a bug at youtrack.jetbrains.com/issues/IDEA with the idea.log and the sample project to reproduce. Commented Jun 21, 2018 at 21:41
  • 1
    If you have already integrated with Gradle then you may have to invalidate your caches. To do that I believe you got to File -> invalidate caches and restart. This will force IntelliJ to reindex the project allowing it to identify symbols. Commented Jun 21, 2018 at 22:12
  • @Turing85 I tried, unfortunately it didn't work. Commented Jun 22, 2018 at 0:28
  • @CrazyCoder I tried, but it didn't work. Will report as a bug. Commented Jun 22, 2018 at 0:32

2 Answers 2

2

Turn on "Preference" | "Build, Execution, Deployment" | "Compiler" | "Annotation Processors" | "Enable annotation processing".

Sign up to request clarification or add additional context in comments.

Comments

1

1 - Check if Anotation Processing is enable in both 'Settings' and 'Default Settings' windows.

2 - Check if Lombok Plugin is installed and updated.

3 - Remove ALL generated folders from your project (.idea, .gradle, gradle, build, out..)

4 - Rerun Gradle Build.

This worked for me today when the Idea build was working but the Gradle run kept giving me errors.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.