Error packaging project for ADNROID

LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:195: error: cannot find symbol
LogPlayLevel: UAT: import com.epicgames.unreal.DownloadShim;
LogPlayLevel: UAT: ^
LogPlayLevel: UAT: symbol: class DownloadShim
LogPlayLevel: UAT: location: package com.epicgames.unreal
LogPlayLevel: UAT: 1 error
LogPlayLevel: UAT:
LogPlayLevel: UAT: FAILURE: Build failed with an exception.
LogPlayLevel: UAT:
LogPlayLevel: UAT: * What went wrong:
LogPlayLevel: UAT: Execution failed for task ‘:app:compileDebugJavaWithJavac’.
LogPlayLevel: UAT: > Compilation failed; see the compiler error output for details.
LogPlayLevel: UAT:
LogPlayLevel: UAT: * Try:
LogPlayLevel: UAT: 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.
LogPlayLevel: UAT:
LogPlayLevel: UAT: * Get more help at https://help.gradle.org
LogPlayLevel: UAT:
LogPlayLevel: UAT: 32 actionable tasks: 32 executed
LogPlayLevel: UAT: BUILD FAILED in 1m 4s
LogPlayLevel: Error: UAT: ERROR: cmd.exe failed with args /c “C:\Users\radys\Documents\Unreal Projects\Antico\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
LogPlayLevel: UAT: (see C:\Users\radys\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.2\Log.txt for full exception trace)
LogPlayLevel: UAT: AutomationTool executed for 0h 16m 54s
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 70.898331
LogPlayLevel: UAT: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error

2 Likes

you need to post a screenshot of the part of the log where the red error lines are to do it.

but gradle seems to have an error, so
do you have JRE8, JDK8, NDK 21-25, sdk 29-30? all installed?
Gradle errors usually point to incorrectly installed jre8, or having the wrong NDK.

hi!did you answer this problem? i have the same problem and i dont know what else to do

Change java version to jdk-17 worked for me.