when i try to export the project after watching the intro to xr video i get this error:
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please read the following process output to find out more:
-----------------------
Invalid maximum heap size: -Xmx4536m
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Although I don’t know which video you’re referring to, it sounds like this issue could be caused by your Java environment being 32 bit, which does not support a heap size larger than 4 GB (and in this case, the error message is telling you that you’re trying to create it with a size of roughly 4.5 GB). I’d recommend either installing the 64 bit version of Java, or lowering the heap size to be under 4 GB.
@tibaverus is right, you need the 64bit version of Java, you also need to make sure it is Java 17 that you install.
Similarly with Android Studio and there also you need to make sure the correct versions of everything is there (though our gradle configuration is getting better and better at triggering the correct versions to be installed).
thanks. the java22 installer i downloaded for regular android games was 64 and when i looked in my downloads folder i saw that and assumed it was correct. But you’re correct, it looks like when i downloaded the jdk17 for xr i chose the 32bit. Thanks for taking the time to reply!
Yep, i had downloaded and earlier version of java(jdk22) in 64bit. then when i was trouble shooting my jkd17 i glanced at the wrong zip thinking i’d installed the 64 for jdk17. Thanks for taking the time to help tho!