software-mansion / radon-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
https://ide.swmansion.com
Other
867 stars 29 forks source link

JAVA_HOME is set to an invalid directory #545

Open abdul-razaq opened 2 weeks ago

abdul-razaq commented 2 weeks ago

*ERROR I keep getting the error below when I try to boot up the Android emulator in the react native IDE.

ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Android\Android Studio\jbr Please set the JAVA_HOME variable in your environment to match the 2024-09-14 15:34:47.193 [info] location of your Java installation.

This error occurs even tho my JAVA_HOME points to the right java installation and works well when opening my emulator in the normal usual way.

Environment

cacacaio commented 1 week ago

I have the same issue on windows, the env variable is working if I print it via powershell and cmd. But on IDE it always points to C:\Program Files\Android\Android Studio\jbr

What I did as a workaround is copy all the JDK files to this folder so at least it works, but it would be good to have a permanent fix

abdul-razaq commented 1 week ago

Actually, this worked for me. I hope there is a permanent fix for this as soon as possible. Thank you!