Invalid Gradle JDK configuration found. Open Gradle Settings
Is this happening even when jdk is configured properly?
Delete below files and sync the project
.idea/gradle.xml
.idea/workspace.xml
Tip # 2
In Android Studio, with MainActivity.kt open, select Code > Override Methods or press Control+o. A dialog appears with a huge list of all the methods you can override in this class.
Enjoy
Thanks for reading!