# Unknown Error When Launching To External Android Device

**URL:** <https://forums.unrealengine.com/t/unknown-error-when-launching-to-external-android-device/478211>\
**Category:** Mobile\
**Tags:** launching-packaged-g, gradle, unreal-engine, Android, Augmented-Reality, UE4-26, question\
**Created:** [February 3, 2021, 9:18pm UTC](https://forums.unrealengine.com/t/unknown-error-when-launching-to-external-android-device/478211 "2021-02-03T21:18:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peemard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peemard/32/764258_2.png) [@Peemard](https://forums.unrealengine.com/u/Peemard)\
**Post date:** [February 3, 2021, 9:18pm UTC](https://forums.unrealengine.com/t/unknown-error-when-launching-to-external-android-device/478211/1 "2021-02-03T21:18:58Z")

</div>

Hi, The last couple of days I have been struggling to wrap my head around this, I’m using the default Handheld AR Template, and I have followed the entire [android quick start/setup](https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/GettingStarted/index.html) for 4.25+ step by step. I have used different engine versions(4.25, 4.26, and the new 4.26.1 hotfix), Android Studio versions(3.5.3, 4.1.2), and have tried several different tutorials online. I am 100% certain I am missing something because the error is consistent across all different software versions, and configurations.

When Launching to my external android device, (Google Pixel 5 Running Android 11), It runs into the following error:

```
    LogPlayLevel: > Task :app:mergeDebugNativeLibs
    LogPlayLevel: 46 actionable tasks: 46 executed
    LogPlayLevel: FAILURE: Build failed with an exception.
    LogPlayLevel: * What went wrong:
    LogPlayLevel: Execution failed for task ':app:processDebugResources'.
    LogPlayLevel: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    LogPlayLevel: > Android resource linking failed
    LogPlayLevel: Error: AAPT: error: failed writing to 'Y:\app\build\intermediates\runtime_symbol_list\debug\R.txt': The data is invalid. (13).
    LogPlayLevel: * Try:
    LogPlayLevel: 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: * Get more help at https://help.gradle.org
    LogPlayLevel: BUILD FAILED in 51s
    LogPlayLevel: Error: ERROR: cmd.exe failed with args /c "C:\Users\[MYNAME]\Documents\Unreal Projects\ARGallery\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug
    LogPlayLevel: Took 164.2342941s to run UnrealBuildTool.exe, ExitCode=6
    LogPlayLevel: UnrealBuildTool failed. See log for more details. (C:\Users\[MYNAME]\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UBT-ARGallery-Android-Development.txt)
    LogPlayLevel: AutomationTool exiting with ExitCode=6 (6)
    LogPlayLevel: Completed Launch On Stage: Build Task, Time: 163.890792
    LogPlayLevel: BUILD FAILED
    PackagingResults: Error: Launch failed! Unknown Error

```

Any help would be greatly appreciated!!!

---

<div class="post-metadata">

**Author:** ![emperor\_katax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/emperor_katax/32/1070178_2.png) [@emperor\_katax](https://forums.unrealengine.com/u/emperor_katax)\
**Post date:** [March 10, 2021, 10:00pm UTC](https://forums.unrealengine.com/t/unknown-error-when-launching-to-external-android-device/478211/2 "2021-03-10T22:00:58Z")

</div>

Having same problem here. Suddenly it stop building into quest 2 and this error message comes up. Did you find any solution ?

---

<div class="post-metadata">

**Author:** ![Peemard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peemard/32/764258_2.png) [@Peemard](https://forums.unrealengine.com/u/Peemard)\
**Post date:** [June 30, 2021, 4:37am UTC](https://forums.unrealengine.com/t/unknown-error-when-launching-to-external-android-device/478211/3 "2021-06-30T04:37:32Z")

</div>

Hi, I recently, after a lot of testing, figured out the issue (or at least what my issue was), and it happened to be as simple as disabling my antivirus- now I’m able to launch/deploy perfectly fine, tested on my Google Pixel 5 and Quest 2.

Hope this helps! (:
