简体   繁体   中英

IntelliJ Auto build with errors but not errors in editor

I'm Using IntelliJ IDEA Ultimate 2019.2 to work on a Java w/gradle project.

When I try to run a JUnit test the Autobuild is triggered and it complains with the following message:

Auto build completed with errors

In the Problems tab I see over 100 erros and when I click on them to investigate I can see that these are not real errors, the editor has no red squiggly anywhere and if I look into specific errors (like java: cannot find symbol) I confirm they are invalid errors.

I've tried "Invalidate Caches / Restart" and "Rebuild Project" with no luck

I tried many things, but I think the issue got resolved when I switched the Gradle "Build and run using" setting from Gradle to IntelliJ. 毕业设置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM