Why does IntelliJ IDEA 2021.1 require Android SDK for gradle projects?

Viewed 1226

After upgrading IntelliJ IDEA to version 2021.1 (Ultimate) it fails to load gradle projects. It displays a message:

The Jdk installation is invalid.
Selected Jdk location is C:/Program Files/Java/jdk-11.0.3.

Select a JDK from the File System
Download JDK 8

The problem is that when I click "Select a JDK from the File System", a window with "Android SDK location" and "Android NDK location" appears. The projects are not for Android, so why is the IDE asking for Android libraries? And how to fix it?

(OS: Windows 10)

1 Answers

Do you have local.properties file inside project root? See IDEA-266804. Will be fixed in next IDE update.

As a workaround, disable the Android plugin in Settings | Plugins or remove the local.properties file.

Related