Hello, Unreal world!
I am trying to publish a sample app (the third-person template as default, because I was not able to make it with my original app…) but encountering fails.
I followed all the Manuals about Android development by UE website. And my environmental variables are:
ANDROID_HOME
C:\Users'username’\AppData\Local\Android\Sdk
JAVA_HOME
C:\Program Files\Android\Android Studio\jbr
NDK_ROOT and NDKROOT
C:\Users'username’\AppData\Local\Android\Sdk\ndk\25.1.8937393
I believe these are all set correctly.
So far I once uninstalled Android Studio and cleaned up all the studio-related files and folders, clean installed it via UE5.4 editor (so, my Android Studio is Flamingo | 2022.2.1 Patch 2).
Every time I try to run Android emulator connecting my device (both Android 14 and 12) I get the same error message as below.
LogPlayLevel: UAT: ???12?
LogPlayLevel: UAT:
LogPlayLevel: UAT: > Task :app:compileDebugJavaWithJavac FAILED
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.
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 37s
LogPlayLevel: UAT: 61 actionable tasks: 60 executed, 1 up-to-date
LogPlayLevel: UAT: cmd.exe failed with args /c “C:\Users'username’\Documents\Unreal Projects\ALStest\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
LogPlayLevel: UAT: (see C:\Users'username’\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt for full exception trace)
LogPlayLevel: UAT: AutomationTool executed for 0h 1m 6s
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 43.357787
LogPlayLevel: UAT: BUILD FAILED
PackagingResults: Error: 起動に失敗しました! Unknown Error
Would you give me any ideas to solve this?
Thank you so much!
*Dev machine: Windows 11 Pro