I wanted to use OpenJDK 11 and accordingly, I have provided the path in Android Studio by going to Settings -> Gradle -> Gradle JDK. Later, while just trying to test the outcome of adding the same JDK, I saw it got added and the same name was suffixed with
(2) in the list. I am sharing the image to provide more clarity.
Now, how can I remove the listed duplicate entry? Thanks.
What I understood is that you want to remove 11(2) from jdk list
first you need to locate android studio settings directory
second search for file jdk.table.xml
after that search for your jdk with name 11 (2)
if you found it, remove JDK input and save file
tag to be removed looks like below
<jdk version="2"> <name value="14 (2)" /> <type value="JavaSDK" /> <version value="version 14.0.1" /> <homePath value="C:/Program Files/Java/jdk-14.0.1" /> ... </jdk>
I have tried it with android studio opened and settings weren’t applied until I restarted it so It’s prefered you do it with android studio closed.
also I applied it on windows operating system
Answered By – Islam Assem