setting up UE5.3 demo projects to compile/run on VR Meta Pro

Demo VR starter projects ran on 5.0 off the bat. Now, trying the same with 5.3 i run into (it seems) compatibility/version issues.

First had to upgrade to Android Studio Giraffe, then java 17, and now Gradle seems to trip over itself (although version 7.5 is installed):

Blockquote
LogPlayLevel: UAT: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
LogPlayLevel: UAT: Making .apk with Gradle…
LogPlayLevel: UAT: To honour the JVM settings for this build a single-use Daemon process will be forked. See The Gradle Daemon.
LogPlayLevel: UAT: Daemon will be stopped at the end of the build
LogPlayLevel: UAT:
LogPlayLevel: UAT: FAILURE: Build failed with an exception.
LogPlayLevel: UAT:
LogPlayLevel: UAT: * What went wrong:
LogPlayLevel: UAT: Could not open settings generic class cache for settings file ‘Z:\settings.gradle’ (C:\Users\ulthi.gradle\caches\7.5\scripts\cl765bryjxd435mdhqx100jn3).
LogPlayLevel: UAT: > BUG! exception in phase ‘semantic analysis’ in source unit ‘BuildScript’ Unsupported class file major version 65
LogPlayLevel: UAT:
LogPlayLevel: UAT: * Try:
LogPlayLevel: UAT: > Run with --stacktrace option to get the stack trace.
LogPlayLevel: UAT: > Run with --info or --debug option to get more log output.
LogPlayLevel: UAT: > Run with --scan to get full insights.
LogPlayLevel: UAT:
LogPlayLevel: UAT: * Get more help at https://help.gradle.org
LogPlayLevel: UAT:
LogPlayLevel: UAT: BUILD FAILED in 3s
LogPlayLevel: UAT: cmd.exe failed with args /c “C:\Users\ulthi\Documents\Unreal Projects\ArchiViewer\ParkoviSmiljana\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
LogPlayLevel: UAT: (see C:\Users\ulthi\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\Log.txt for full exception trace)
LogPlayLevel: UAT: AutomationTool executed for 0h 1m 2s
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 26.032464
LogPlayLevel: UAT: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error

Blockquote

Any ideas? 7.5 should be high enough to work with 65… (?)

Thanks in advance…

I was just dealing with the same issue; This document will help Compatibility Matrix (gradle.org) but the main issue is the current version of Java you maybe using. In my case, I was using Java 21 which isn’t yet supported by gradle builds yet (or at least not yet) and that seemed to fix the issue

1 Like

Thank you!

From somewhere, it was pulling a version 21 of java (Gradle unsuported)
Took changing system environmental variables AND the java path inside Unity to convince it to use 18, which is installed Gradle 7.5 compatible.

The hassle on the level of installing Oracles back then lol

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.