For me it was because I did not have a folder marked as Source Root (it appears in blue).
To fix, right click your root source directory -> Mark As -> Source Root.
More Related Contents:
- How to move out of auto-completed brackets in IntelliJ IDEA (without using the arrow keys)?
- Removing input background colour for Chrome autocomplete?
- Google Search autocomplete API?
- How do I use WebStorm for Chrome Extension Development?
- Eclipse 2021-09 code completion not showing all methods and classes
- How to set -source 1.7 in Android Studio and Gradle
- C# winforms combobox dynamic autocomplete
- Facebook style JQuery autocomplete plugin [closed]
- Autocomplete off vs false?
- jQuery Autocomplete and ASP.NET
- No App Icon on ActionBar
- Enable Partial Compilation in IntelliJ IDEA
- Android Studio cannot resolve symbol but code executes correctly
- How do I get bash completion to work with aliases?
- How to enable autocomplete for Google Apps Script in locally-installed IDE
- Lombok added but getters and setters not recognized in Intellij IDEA
- .ssh/config file for windows (git)
- Android Studio cannot resolve R in imported project?
- IntelliJ Compilation Error zip END header not found
- IntelliJ: Never use wildcard imports
- Android Studio Project Structure (v.s. Eclipse Project Structure)
- Angularjs autocomplete from $http
- Why doesn’t VS 2008 display extension methods in Intellisense for String class
- jquery ui autocomplete positioning wrong
- How to make autocomplete on a TextBox show suggestions when empty
- Using IntelliJ to amend git commit message
- How to use IntelliJ with Play Framework and Scala
- How do I add a library project to the Android Studio and use it?(Some asked dont’t take effect)
- What does it mean if a variable has the name “this$0” in IntelliJ IDEA while debugging Java?
- How to log data to the Flutter console?