Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete "Project SDK" configuration in IntelliJ

Here is a screenshot of IntelliJ 2017.3.3 "New Project" dialog box.

screenshot of IntelliJ 2017.3.3 "New Project" dialog box

Note how the Project SDK popup shows in red text an older release of Java 9 that I physically deleted from my Mac (from the /Library/Java/JavaVirtualMachines folder).

⇒ How do I delete that particular "Project SDK" setting within IntelliJ?

Clicking the "New" button in the upper-right of that dialog lets me add another JVM but does not allow me to delete.

like image 507
Basil Bourque Avatar asked Jan 26 '18 23:01

Basil Bourque


People also ask

Where is SDK manager in IntelliJ?

The android sdk is stored in usr/local/share/android-sdk .

How do I change the project SDK in IntelliJ?

From the main menu, select File | Project Structure | Project Settings | Modules. Select the module for which you want to set an SDK and click Dependencies. If the necessary SDK is already defined in IntelliJ IDEA, select it from the Module SDK list.


1 Answers

  • Select Project Structure from the File menu.

  • Click SDKs in the left column and select the SDK you want to remove.

  • Click the Delete icon (the minus sign).

  • Click Apply (essential!) then OK to close the Project Structure window.

I just tried this in 2017.3.3 and it worked fine. The JetBrains documentation states that you can also click Alt+DELETE instead of clicking the Delete icon, but that didn't work for me.

Here's the screen:

deleteSDK

To be clear, this action means that the SDK you just removed will no longer be available when you try to create a new project; that SDK will have to be added again on an individual project basis if needed.

like image 107
skomisa Avatar answered Sep 22 '22 12:09

skomisa