UATHelper: Packaging (Android (ASTC)): Copying permission_library directory to staging before build
UATHelper: Packaging (Android (ASTC)): Directory D:/Epic Games/UE_5.3/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/JavaLibs/permission_library (True)
UATHelper: Packaging (Android (ASTC)): ==== Writing to OBB data file D:\Epic Games\Unreal Projects\CarRacingGame\Intermediate\Android\arm64\src\com\YourCompany\CarRacingGame\OBBData.java ====
UATHelper: Packaging (Android (ASTC)): ==== OBB data file up to date so not writing. ====
UATHelper: Packaging (Android (ASTC)): Copying new .so D:\Epic Games\Unreal Projects\CarRacingGame\Binaries\Android\CarRacingGame-Android-Shipping-arm64.so file to jni folderâŚ
UATHelper: Packaging (Android (ASTC)): ====10-01-2024 15:27:18====PERFORMING FINAL APK PACKAGE OPERATION=====arm64===========================================
UATHelper: Packaging (Android (ASTC)): Copied file D:\Epic Games\Unreal Projects\CarRacingGame\Intermediate\Android\arm64\gradle\app\src\main\jniLibs\arm64-v8a\libUnreal.so.
UATHelper: Packaging (Android (ASTC)): Copied file D:\Epic Games\Unreal Projects\CarRacingGame\Intermediate\Android\arm64\gradle\app\src\main\assets\main.obb.png.
UATHelper: Packaging (Android (ASTC)): Directory Engine/Plugins/Runtime/AndroidFileServer/Source/AndroidFileServer/âŚ/AFSStub copied to D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/gradle/AFSProject (True)
UATHelper: Packaging (Android (ASTC)): Directory Engine/Plugins/Runtime/AndroidFileServer/Source/AndroidFileServer/Android copied to D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/gradle/AFSProject/app/src/main (True)
UATHelper: Packaging (Android (ASTC)): Directory D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/gradle/app/src/main/res copied to D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/gradle/AFSProject/app/src/main/res (True)
UATHelper: Packaging (Android (ASTC)): Directory D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/gradle/gradle copied to D:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/Android/arm64/gradle/AFSProject/gradle (True)
UATHelper: Packaging (Android (ASTC)): Fixing minSdkVersion; NDK level is 33 which is above minSdkVersion 26.
UATHelper: Packaging (Android (ASTC)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (ASTC)): Making .apk with GradleâŚ
UATHelper: Packaging (Android (ASTC)): To honour the JVM settings for this build a single-use Daemon process will be forked. See The Gradle Daemon.
UATHelper: Packaging (Android (ASTC)): Daemon will be stopped at the end of the build
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Could not open settings generic class cache for settings file âZ:\settings.gradleâ (C:\Users\Harsh.gradle\caches\7.5\scripts\4tkj1ipi1jaardust47u0bj49).
UATHelper: Packaging (Android (ASTC)): > BUG! exception in phase âsemantic analysisâ in source unit âBuildScriptâ Unsupported class file major version 65
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (ASTC)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ASTC)): > Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 6s
UATHelper: Packaging (Android (ASTC)): cmd.exe failed with args /c âD:\Epic Games\Unreal Projects\CarRacingGame\Intermediate\Android\arm64\gradle\rungradle.batâ :app:assembleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\Harsh\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+UE_5.3\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 6m 34s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ââD:/Epic Games/UE_5.3/Engine/Build/BatchFiles/RunUAT.batâ -ScriptsForProject=âD:/Epic Games/Unreal Projects/CarRacingGame/CarRacingGame.uprojectâ Turnkey -utf8output -WaitForUATMutex -command=VerifySdk -ReportFilename=âD:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/TurnkeyReport_2.logâ -log=âD:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/TurnkeyLog_2.logâ -project=âD:/Epic Games/Unreal Projects/CarRacingGame/CarRacingGame.uprojectâ -platform=allâ -nocompile -nocompileuat ]
PackagingResults: Error: Unknown Error
LogTurnkeySupport: Completed SDK detection: ExitCode = 0
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ââD:/Epic Games/UE_5.3/Engine/Build/BatchFiles/RunUAT.batâ -ScriptsForProject=âD:/Epic Games/Unreal Projects/CarRacingGame/CarRacingGame.uprojectâ Turnkey -utf8output -WaitForUATMutex -command=VerifySdk -ReportFilename=âD:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/TurnkeyReport_3.logâ -log=âD:/Epic Games/Unreal Projects/CarRacingGame/Intermediate/TurnkeyLog_3.logâ -project=âD:/Epic Games/Unreal Projects/CarRacingGame/CarRacingGame.uprojectâ -Device=Win64@HARSHâ -nocompile -nocompileuat ]
LogTurnkeySupport: Turnkey Platform: Android: (Status=Valid, Allowed_Sdk=r25b, Current_Sdk=r25b, Allowed_AutoSdk=r25b, Current_AutoSdk=, Flags=âInstalledSdk_ValidVersionExists, Sdk_HasBestVersionâ)
LogTurnkeySupport: Turnkey Platform: IOS: (Status=Invalid, MinAllowed_Sdk=1100.0.0.0, MaxAllowed_Sdk=8999.0, Current_Sdk=, Allowed_AutoSdk=14.1, Current_AutoSdk=, Flags=âPlatform_ValidHostPrerequisitesâ)
LogTurnkeySupport: Turnkey Platform: Linux: (Status=Invalid, Allowed_Sdk=v22_clang-16.0.6-centos7, Current_Sdk=, Allowed_AutoSdk=v22_clang-16.0.6-centos7, Current_AutoSdk=, Flags=âPlatform_ValidHostPrerequisitesâ)
LogTurnkeySupport: Turnkey Platform: LinuxArm64: (Status=Invalid, Allowed_Sdk=v22_clang-16.0.6-centos7, Current_Sdk=, Allowed_AutoSdk=v22_clang-16.0.6-centos7, Current_AutoSdk=, Flags=âPlatform_ValidHostPrerequisitesâ)
LogTurnkeySupport: Turnkey Platform: Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.22621.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags=âInstalledSdk_ValidVersionExistsâ)
LogTurnkeySupport: Completed device detection: Code = 0
LogTurnkeySupport: Turnkey Device: Win64@HARSH: (Name=HARSH, Type=Computer, Status=Valid, MinAllowed=10.0.18362.0, MaxAllowed=, Current=10.0.22631.0, Flags=âDevice_InstallSoftwareValidâ)
try this way:
- download gradle-6.1.1-all.zip
2.delete all files in this folder c:\user\currentusername\.gradle\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst
3.copy zip file into this folder
4.rebuild.
Did you ever find a solution to this? Been stuck with this same error all day. Tried countless things but canât figure it out.
Ignore the z:\settings.gradle message, it threw me too. Focus on your Java version, I had my project pointed at JDK version 21 by mistake, Unreal & Gradle need version 17 to work properly
Thank yous o much for this, it solve my issue.
After I spent a weekend trying to make this build, you were the only guy to mention this.
this guy solved. It worked for me Could not open settings generic class cache for settings file 'Z:\settings.gradle' - #4 by Pcooper1979
I got this error after upgrading a Quest2 project from 5.3 to 5.4.2
Iâm building for Quest 2 standalone
I found an OpenJDK inside the Unity 2022.3 folder:
C:\Program Files\Unity\Hub\Editor\2022.3.32f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
OpenJDK release file shows:
JAVA_VERSION="11.0.14.1"
My Unreal Android SDK Settings:
Android SDK: C:/Users/myuser/AppData/Local/Android/Sdk
- Android SDK has platforms
android-32, android-33, and android-34
Android NDK:
C:/Users/myuser/AppData/Local/Android/Sdk/ndk/25.1.8937393
JAVA:
C:/Program Files/Unity/Hub/Editor/2022.3.32f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK
SDK API:
android-29
NDK API:
android-29