Tuesday, October 20, 2020

IntelliJ Invalidate Cache Not Working with Gradle

 Hi,

If IntellJ Invalidate Cache is not working, try to detach and reimport Gradle project from View > Tool Windows > Gradle (right panel)


This may allow you to view the most recent source and eliminate inconsistencies between your intellisense and the actual source code

Also try unchecking "create separate module per source set" when reimporting the Gradle project