Hey, I get an error as following when I build for Android Multi
“Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0”
I have the following setup:
API 35 and API 34
SDK Build tools versions:
35.0
34.0
31.0.1
30.0
29.0.1
28.0.3
Android Studio Giraffe 2022.3.1 (Because Flamingo did not help)
JDK 17
NDK 25.1.8937393
Gradle 7.5 and Wrapper 8.0
Environment variables setup along with paths inside unreal project settings
I Tried:
Reinstalling 5.3.2
Running android.bat
Deleting intermediate , saved and DerivedDataCache folder
LOG:
LogShaderCompilers: Display: ================================================
LogShaderCompilers: Display: === FShaderJobCache stats ===
LogDerivedDataCache: C:/Users/Titan PRIME/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:56.421 and deleted 0 files with total size 0 MiB and 0 empty folders. Scanned 29398 files in 31078 folders with total size 5753 MiB.
LogSlate: Window ‘Output Log’ being destroyed
LogSlate: Window ‘Output Log’ being destroyed
LogUObjectHash: Compacting FUObjectHashTables data took 9.42ms
LogTurnkeySupport: Project requires temp target (CommonUI plugin is enabled)
LogLauncherProfile: Unable to use promoted target - …/…/…/…/…/…/Trojan/Cloned/SilentInvation/Binaries/Android/UnrealGame.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“C:/Trojan/Cloned/SilentInvation/FirstProject.uproject” Turnkey -command=VerifySdk -platform=Android -UpdateIfNeeded -EditorIO -EditorIOPort=57478 -project=“C:/Trojan/Cloned/SilentInvation/FirstProject.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“C:/Trojan/Cloned/SilentInvation/FirstProject.uproject” -unrealexe=“C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platfo
rm=Android -cookflavor=Multi -SkipCookingEditorContent -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/Titan PRIME/Desktop” -clientconfig=Development” -nocompile -nocompileuat ]
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Running AutomationTool…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Starting AutomationTool…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Parsing command line: -ScriptsForProject=C:/Trojan/Cloned/SilentInvation/FirstProject.uproject Turnkey -command=VerifySdk -platform=Android -UpdateIfNeeded -EditorIO -EditorIOPort=57478 -project=C:/Trojan/Cloned/SilentInvation/FirstProject.uproject BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=C:/Trojan/Cloned/SilentInvation/FirstProject.uproject -unrealexe=“C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Android -cookflavor=Multi -SkipCookingEditorContent -installed
-stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=“C:/Users/Titan PRIME/Desktop” -clientconfig=Development -nocompile -nocompileuat
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Initializing script modules…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Total script module initialization time: 1.58 s.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Executing commands…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Installed Sdk validity:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android: (Status=Valid, Allowed_Sdk=r25b, Current_Sdk=r25b, Allowed_AutoSdk=r25b, Current_AutoSdk=, Flags=“InstalledSdk_ValidVersionExists, Sdk_HasBestVersion”)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Scanning for envvar changes…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): … done!
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Cleaning Temp Paths…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD SUCCESSFUL
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Setting up ProjectParams for C:\Trojan\Cloned\SilentInvation\FirstProject.uproject
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Running: C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” FirstProject Android Development -Project=C:\Trojan\Cloned\SilentInvation\FirstProject.uproject -Manifest=C:\Trojan\Cloned\SilentInvation\Intermediate\Build\Manifest.xml -remoteini=“C:\Trojan\Cloned\SilentInvation” -skipdeploy -log=“C:\Users\Titan PRIME\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-
FirstProject-Android-Development.txt”
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Log file: C:\Users\Titan PRIME\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-FirstProject-Android-Development.txt
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Using ‘git status’ to determine working set for adaptive non-unity build (C:\Trojan\Cloned\SilentInvation).
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Creating makefile for FirstProject (manifest ‘C:\Trojan\Cloned\SilentInvation\Intermediate\Build\Manifest.xml’ not found)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android (8490178, based on r450784d) clang version 14.0.6 (toolchain/llvm-project - Git at Google 4c603efb0cca074e9238af8b4106c30add4418f6)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target: x86_64-w64-windows-gnu
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Thread model: posix
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): InstalledDir: C:/Users/Titan PRIME/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Compiling with ray tracing enabled
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android (8490178, based on r450784d) clang version 14.0.6 (toolchain/llvm-project - Git at Google
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Writing manifest to C:\Trojan\Cloned\SilentInvation\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target is up to date
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Total execution time: 27.38 seconds
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Took 27.86s to run dotnet.exe, ExitCode=0
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Build command time: 27.97 s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** BUILD COMMAND COMPLETED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ********** COOK COMMAND STARTED **********
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target SDK Version 35
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Android (8490178, based on r450784d) clang version 14.0.6 (toolchain/llvm-project - Git at Google 4c603efb0cca074e9238af8b4106c30add4418f6)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Target: x86_64-w64-windows-gnu
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Thread model: posix
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): InstalledDir: C:/Users/Titan PRIME/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/bin
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Using package name: ‘com.YourCompany.FirstProject’
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): GotStoreVersion found v1. (bUseChangeListAsStoreVersion=False IsBuildMachine=False EngineChangeList=0)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory Engine/Plugins/Runtime/AndroidFileServer/Source/AndroidFileServer/…/AFSStub copied to C:/Trojan/Cloned/SilentInvation/Intermediate/Android/arm64/gradle/AFSProject (True)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory Engine/Plugins/Runtime/AndroidFileServer/Source/AndroidFileServer/Android copied to C:/Trojan/Cloned/SilentInvation/Intermediate/Android/arm64/gradle/AFSProject/app/src/main (True)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory C:/Trojan/Cloned/SilentInvation/Intermediate/Android/arm64/gradle/app/src/main/res copied to C:/Trojan/Cloned/SilentInvation/Intermediate/Android/arm64/gradle/AFSProject/app/src/main/res (True)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Directory C:/Trojan/Cloned/SilentInvation/Intermediate/Android/arm64/gradle/gradle copied to C:/Trojan/Cloned/SilentInvation/Intermediate/Android/arm64/gradle/AFSProject/gradle (True)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Making .apk with Gradle…
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): To honour the JVM settings for this build a single-use Daemon process will be forked. See The Gradle Daemon.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Daemon will be stopped at the end of the build
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:mergeDebugShaders UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:compileDebugShaders NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:generateDebugAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:packageDebugAssets UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeDebugAssets
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :downloader_library:bundleLibResDebug NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:processDebugJavaRes NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :permission_library:bundleLibResDebug NO-SOURCE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:compressDebugAssets FAILED
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Task :app:mergeDebugJavaResource UP-TO-DATE
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * What went wrong:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Execution failed for task ‘:app:compressDebugAssets’.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Required array size too large
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Try:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > Run with --scan to get full insights.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED in 58s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): See Command-Line Interface
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 47 actionable tasks: 2 executed, 45 up-to-date
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): cmd.exe failed with args /c “C:\Trojan\Cloned\SilentInvation\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): (see C:\Users\Titan PRIME\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\Log.txt for full exception trace)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AutomationTool executed for 0h 7m 16s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED
PackagingResults: Error: Unknown Error
Does rebuilding the cooked content make a difference?
I have checked all the forums related but no luck.