gradle can't find jvm.cfg

I have a very simple gradle file for building to oculus quest. I upgraded Android Studio to Arctic Fox, and now whenever I try running gradle I get:

Error: could not open `C:\Program Files\Android\Android Studio\jre\jre\lib\amd64\jvm.cfg’

I’ve been told failure to find that = corrupted java install, so I reinstalled java.
No difference.
Been told to delete java.exe, javaw.exe, and javaws.exe from C:\Windows\System32.
Those files aren’t present in System32.
Been told to check my environment variables.
Nothing even seems to reference java except for my ANDROID_HOME, ANDROID_NDK_HOME, ANDROID_SDK_ROOT, which I all have pointing correctly to their install folders.

What do I do to fix this? Or at the very least, where is gradle even getting this path from?

Hey so I’m almost 2 years late to the party here, but, did an Android Studio update go wrong by any chance? I looked in C:\Program Files\Android, and I saw AndroidStudio, and AndroidStudio1. I deleted the former, and renamed the latter into the former and that fixed it. :slight_smile:

1 Like