UE 5.1.1 Android Quick Start Trouble

I was following the steps in these links:

After following the steps I try to launch to my device and get the following errors (I believe this is gradle packaging?):

LogPlayLevel: UAT: > Task :app:compileDebugJavaWithJavac
LogPlayLevel: UAT: The following annotation processors are not incremental: lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0).
LogPlayLevel: UAT: Make sure all annotation processors are incremental to improve your build speed.
LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:194: error: cannot find symbol
LogPlayLevel: UAT: import com.epicgames.unreal.DownloadShim;
LogPlayLevel: UAT: ^
*LogPlayLevel: UAT: *
LogPlayLevel: UAT: symbol: class DownloadShim
LogPlayLevel: UAT: > Task :app:compileDebugJavaWithJavac FAILED
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: BUILD FAILED in 19s
LogPlayLevel: UAT: 32 actionable tasks: 1 executed, 31 up-to-date
LogPlayLevel: Error: UAT: ERROR: cmd.exe failed with args /c “C:\Users\wblac\Documents\Unreal Projects\AndroidQuickStart\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
LogPlayLevel: UAT: (see C:\Users\wblac\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
LogPlayLevel: UAT: AutomationTool executed for 0h 0m 54s
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Launch Task, Time: 55.634580
LogPlayLevel: UAT: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error

I can’t upload attachments as a new user but here is some more information:

Android Studio 4.0 has Installed:
SDK Platforms: 26-32
SDK Tools:
Android SDK Build-Tools: 32.0.0, 30.0.3, 29.0.2
NDK: 25.1.8937393
Android SDK Command-line Tools: 8.0

My environment variables:
ANDROID_HOME: C:\Users\wblac\AppData\Local\Android\Sdk
ANDROID_SDK_HOME: C:\Users\wblac\AppData\Local\Android\Sdk
JAVA_HOME: C:\Program Files\Android\Android Studio\jre
NDK_ROOT: C:\Users\wblac\AppData\Local\Android\Sdk\ndk\25.1.8937393
NDLROOT: C:\Users\wblac\AppData\Local\Android\Sdk\ndk\25.1.8937393

1 Like

I am still stuck on this if anyone has any suggestions.

I tried wiping and starting over, tried on another PC. Still get to the same error.

1 Like

the same problem here

Hello,
Can you try the following steps?

  1. Open the Project Settings and check “Platform - Android” > “Android Package Name”
  2. If it begins with “com.EpicGames” like com.EpicGames.AndroidQuickStart, replace “EpicGames” part with something like “YourCompany” or make it lower case (com.epicgames)

  1. Go to your project folder and delete Intermediate/Android folder to clear everything once for sure
  2. Connect your Android devices to your PC
  3. Try Quick Launch as the Android Quick Start document explains

I hope this would help you!
Thanks

1 Like

Was getting similar error, after deleting intermediats/Android - now I get a little farther with:

LogPlayLevel: Error: UAT: ERROR:Z:\app\build\intermediates\javac\debug\classes\com\epicgames\unreal\GameActivity$41.class: D8: java.lang.NullPointerException: Cannot invoke “String.length()” because “” is null
Log

OMG… I eventually got it to launch on device after endless tweaking of the NDK/JDK settings

Specifically I used Android/Android Studio/jbr
as the location of JAVA

1 Like