Android Package Error GameActivity:729

Hey,

I am trying to package my Archviz project for android. I didnt made any android packages for a while this is also my first one in 5.4.4. (i think the last one was 5.3 or 5.2)

I got rid of pretty much all errors but now i am stuck at this one

UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:729: error: cannot find symbol

i allready tried this (Android packaging fails with errors in GameActivity.java) method with the file that someone posted in the comments but this did not work

I am now completely lost how i could get rid of this error. I tried playing around with different SDK versions (even tho i dont really understand that much about it). I now again ended at

SDK 33
Min SDK 24
NDK r25b

since when i go

SDK 34
Min SDK 34
NDK r25b

like the unreal documentaion recommends, Unreal tells me that the compiler doesnt work with API 34 and that i should use API 33 (I at least think that i installed everything correctly in android studio)

So last thing i did was looking into the GameActivity at the named line but i understand absolutely nothing about it and so i am stuck now :frowning:


Full Log after the Error if needet

UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:729: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)): activityContext.runOnUiThread(new Runnable()
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): symbol: method runOnUiThread()
UATHelper: Packaging (Android (ASTC)): location: variable activityContext of type ContextWrapper
UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugJavaWithJavac
UATHelper: Packaging (Android (ASTC)): Note: Some input files use or override a deprecated API.
UATHelper: Packaging (Android (ASTC)): Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (ASTC)): 1 error
UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (ASTC)): > Task :app:mergeDebugNativeLibs
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:compileDebugJavaWithJavac’.
UATHelper: Packaging (Android (ASTC)): > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): 61 actionable tasks: 60 executed, 1 up-to-date
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 1m 43s
UATHelper: Packaging (Android (ASTC)): cmd.exe failed with args /c “N:\Unreal Engine\001_Projektkategorie_Buero\AmLichtbogen_E\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\jan.lessmann\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 7m 11s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error