By default JDK is used for android studio when STUDIO_JDK is not installed

I am creating a plugin for Android Studio using IntelliJ, but it always shows this error when I try to load it on Android Studio. Unless I have set STUDIO_JDK to jdk1.8 path.

com.intellij.diagnostic.PluginException: MyComponent :
Unsupported major.minor version 52.0

      

So, I'm wondering if the JDK will be android studio by default when STUDIO_JDK is not installed.

+3


source to share


3 answers


I found the answer to this question later. If you open About Android Studio, you will see JRE 1.6 . This means that Android Studio runs in java 1.6 by default, regardless of which "JDK" you use for development. Of course, there are ways to change this. You can put the jdk path in STUDIO_JDK and start Android Studio with that (initiate from the terminal where you install STUDIO_JDK). As a consequence, you will have to use JDK 1.6 when developing a plugin for Android Studio so that it can work with the default settings.



0


source


It says

Unsupported major.minor 52.0



you should try using jdk 1.8 with a different major.minor version (besides 52.0)

0


source


Android Studio runs on JRE 1.6 by default. I assumed you have multiple JDKs and to change that JRE on Android Studio you need to remove / move the default JDK (1.6). OSX:

sudo mv /Library/Java/JavaVirtualMachines/1.6.0.jdk /tmp

Finally, check "About Android Studio"

0


source







All Articles