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.
source to share
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.
source to share