I am using Ubuntu 17.10 and I just updated Android Studio from version 3.0.1 to 3.1. Here is the version information in Help → About:
Android Studio 3.1 Build #AI-173.4670197, built on March 22, 2018 JRE: 1.8.0_152-release-1024-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro Linux 4.13.0-37-generic
Unfortunately, although earlier in my (first-ever) Kotlin project, the IDE could resolve links related to Android, in the new version it was not able to. Here is a screenshot showing what I mean:

Android Studio 3.1 claims that the basic Android functions, such as setContentView() , do not exist, and constantly encourages me to create an abstract function for it, which I clearly do not want to do. However, if I press the build button, I will get BUILD SUCCESSFUL in 8s .
Does anyone know why my editor does this, and how can I get the functions and classes related to Android for the correct resolution again?
Edit: Refresh: I have more information on this issue, but it is still not resolved:
- Build -> Clean, and then Build -> Rebuild does not help.
- File -> Invalidate Caches and Restart doesn't help either
- Also, manual Gradle synchronization is not performed.
- Another project written in Java instead of Kotlin is working fine.
- Link to the project I'm having problems with (open source)
source share