In my project, com.google and some other packages are highlighted in red with an error message "unresolved reference".
However, I can still run and build the code on Intellij. Therefore, I suspect that Intellij cannot recognize the packages due to incorrect configuration. "Partially Sync" does not help,and I tried difference java version, e.g., java 8, java 11 and java 13 but still have the same problem. I also tried making all configuration match each other and invaliding caches, but it still does not work. Kotlin unresolved reference in IntelliJ Here is the screenshots of my configuration.