Can I assign two different environment variables for two different Java JDK?

Viewed 94

I have recently installed IntelliJ IDEA to my system and beside I use android studio too, but the android Gradle shows this error

"Project "project name" is using the following JDK location when running Gradle:

  • Using different JDK locations on different processes might cause Gradle to spawn multiple daemons, for example, by executing Gradle tasks from a terminal while using Android Studio."

And Now I want to add Android OpenJDK location to Java_Home, There was already one I had set Amazon Corretto - JDK while installing IntelliJ IDEA.

Is there any solution for it?

0 Answers
Related