Wednesday, June 8, 2016

Quick Tip - import recognized in IntelliJ Idea

If you know you have the correct gradle configuration for an library, but the import isn't recognized in IntelliJ Idea, do the following:

File menu -> Invalidate Caches/Restart...

This can take a while.  IDEA will rebuild indexes.  But sometimes, this is required!

At command-line, you may need:

./gradlew clean build --refresh-dependencies


No comments: