# Deploying android. Execution failed for task ':app:processDebugResources'.

**URL:** <https://forums.unrealengine.com/t/deploying-android-execution-failed-for-task-app-processdebugresources/155872>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [January 4, 2021, 7:39pm UTC](https://forums.unrealengine.com/t/deploying-android-execution-failed-for-task-app-processdebugresources/155872 "2021-01-04T19:39:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xxxyxyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xxxyxyx](https://forums.unrealengine.com/u/xxxyxyx)\
**Post date:** [January 4, 2021, 7:39pm UTC](https://forums.unrealengine.com/t/deploying-android-execution-failed-for-task-app-processdebugresources/155872/1 "2021-01-04T19:39:21Z")

</div>

please help with running the game on android. I struggle all day to make it finally go on the phone. I changed the min sdk version to 26 and the target sdk version to 29 but it does nothing, please help

log:

> [@](#):
>
> LogPlayLevel: Subsystem Google Play SDK Android init  
> LogPlayLevel: Android Permission Plugin Init  
> LogPlayLevel: Google Cloud Messaging init  
> LogPlayLevel: GCMClientSenderID set: false  
> LogPlayLevel: GooglePAD Plugin Init  
> LogPlayLevel: GooglePAD enabled: false  
> LogPlayLevel: Oculus mobile init  
> LogPlayLevel: Oculus Signature Files (osig) will be removed from APK  
> LogPlayLevel: Android Voice init  
> LogPlayLevel: AndroidAdvertising init  
> LogPlayLevel: Including AdMob support. Disable in Android project settings if you do not need to use it.  
> LogPlayLevel: GoogleGameSDK Android init  
> LogPlayLevel: UPL Init: arm64-v8a  
> LogPlayLevel: Subsystem Google Play SDK Android init  
> LogPlayLevel: Android Permission Plugin Init  
> LogPlayLevel: Google Cloud Messaging init  
> LogPlayLevel: GCMClientSenderID set: false  
> LogPlayLevel: GooglePAD Plugin Init  
> LogPlayLevel: GooglePAD enabled: false  
> LogPlayLevel: Oculus mobile init  
> LogPlayLevel: Oculus Signature Files (osig) will be removed from APK  
> LogPlayLevel: Android Voice init  
> LogPlayLevel: AndroidAdvertising init  
> LogPlayLevel: Including AdMob support. Disable in Android project settings if you do not need to use it.  
> LogPlayLevel: GoogleGameSDK Android init  
> LogPlayLevel: APK contains data.  
> LogPlayLevel: ====2021-01-04 20:33:42====PREPARING NATIVE CODE=====-armv7============================================================  
> LogPlayLevel: bPackageDataInsideApk = False  
> LogPlayLevel: UE4CommandLine.txt exists…  
> LogPlayLevel: Copying C:\Users\komp\Documents\Unreal Projects\Celnik\Saved\StagedBuilds\Android\_ASTC\UE4CommandLine.txt to C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\assets\UE4CommandLine.txt  
> LogPlayLevel: Added repository: D:\unreal\UE\_4.26\Engine\Source\ThirdParty\Android\extras\google\m2repository  
> LogPlayLevel: Added repository: D:\unreal\UE\_4.26\Engine\Source\ThirdParty\Android\extras\android\m2repository  
> LogPlayLevel: AARImports: com.google.android.gms, play-services-auth, 11.8.0  
> LogPlayLevel: AARImports: com.google.android.gms, play-services-games, 11.8.0  
> LogPlayLevel: AARImports: com.google.android.gms, play-services-nearby, 11.8.0  
> LogPlayLevel: AARImports: com.google.android.gms, play-services-plus, 11.8.0  
> LogPlayLevel: Copying Google Play BillingApiV2 java files  
> LogPlayLevel: Directory Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/Java/BillingApiV2 copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/src  
> LogPlayLevel: Copying permission\_library directory to staging before build  
> LogPlayLevel: Directory D:/unreal/UE\_4.26/Engine/Source/ThirdParty/AndroidPermission/permission\_library copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/JavaLibs/permission\_library  
> LogPlayLevel: ==== Writing to OBB data file C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\src\com\YourCompany\Celnik\OBBData.java ====  
> LogPlayLevel: ==== OBB data file up to date so not writing. ====  
> LogPlayLevel: Copying new .so D:\unreal\UE\_4.26\Engine\Binaries\Android\UE4Game-armv7.so file to jni folder…  
> LogPlayLevel: Copying libplaycore.so and proguard files  
> LogPlayLevel: File D:/unreal/UE\_4.26/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/…/ThirdParty/play-core-native-sdk/libs/armeabi-v7a/ndk21.3.6528147/c++\_shared/libplaycore.so copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/libs/armeabi-v7a/libplaycore.so  
> LogPlayLevel: Copying libvrapi.so  
> LogPlayLevel: File D:/unreal/UE\_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/armeabi-v7a/libvrapi.so copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/libs/armeabi-v7a/libvrapi.so  
> LogPlayLevel: Copying libOVRPlugin.so  
> LogPlayLevel: File D:/unreal/UE\_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/libs/armeabi-v7a/libOVRPlugin.so  
> LogPlayLevel: File D:/unreal/UE\_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar does not exist, not copied!  
> LogPlayLevel: File D:/unreal/UE\_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar does not exist, not copied!  
> LogPlayLevel: ====2021-01-04 20:33:45====PERFORMING FINAL APK PACKAGE OPERATION=====-armv7===========================================  
> LogPlayLevel: Copied file C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\gradle\app\src\main\assets\UE4CommandLine.txt.  
> LogPlayLevel: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)  
> LogPlayLevel: Making .apk with Gradle…  
> LogPlayLevel: To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: [The Gradle Daemon](https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html).  
> LogPlayLevel: Daemon will be stopped at the end of the build stopping after processing  
> LogPlayLevel: \> Task :app:preBuild UP-TO-DATE  
> LogPlayLevel: \> Task :app:preDebugBuild UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:preBuild UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:preDebugBuild UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:compileDebugAidl NO-SOURCE  
> LogPlayLevel: \> Task :permission\_library:preBuild UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:preDebugBuild UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:compileDebugAidl NO-SOURCE  
> LogPlayLevel: \> Task :app:compileDebugAidl UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:packageDebugRenderscript NO-SOURCE  
> LogPlayLevel: \> Task :permission\_library:packageDebugRenderscript NO-SOURCE  
> LogPlayLevel: \> Task :app:compileDebugRenderscript NO-SOURCE  
> LogPlayLevel: \> Task :app:generateDebugBuildConfig UP-TO-DATE  
> LogPlayLevel: \> Task :app:javaPreCompileDebug UP-TO-DATE  
> LogPlayLevel: \> Task :app:generateDebugResValues UP-TO-DATE  
> LogPlayLevel: \> Task :app:generateDebugResources UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:compileDebugRenderscript NO-SOURCE  
> LogPlayLevel: \> Task :downloader\_library:generateDebugResValues UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:generateDebugResources UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:packageDebugResources UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:compileDebugRenderscript NO-SOURCE  
> LogPlayLevel: \> Task :permission\_library:generateDebugResValues UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:generateDebugResources UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:packageDebugResources UP-TO-DATE  
> LogPlayLevel: \> Task :app:mergeDebugResources UP-TO-DATE  
> LogPlayLevel: \> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE  
> LogPlayLevel: \> Task :app:extractDeepLinksDebug UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:extractDeepLinksDebug UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:processDebugManifest UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:extractDeepLinksDebug UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:processDebugManifest UP-TO-DATE  
> LogPlayLevel: \> Task :app:processDebugManifest UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:compileDebugLibraryResources UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:parseDebugLocalResources UP-TO-DATE  
> LogPlayLevel: \> Task :downloader\_library:generateDebugRFile UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:compileDebugLibraryResources UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:parseDebugLocalResources UP-TO-DATE  
> LogPlayLevel: \> Task :permission\_library:generateDebugRFile UP-TO-DATE  
> LogPlayLevel: \> Task :app:processDebugResources FAILED  
> 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 ‘Z:\app\build\intermediates\runtime\_symbol\_list\debug\R.txt’: Nieprawidłowe dane. (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](https://help.gradle.org)  
> LogPlayLevel: BUILD FAILED in 19s  
> LogPlayLevel: 23 actionable tasks: 1 executed, 22 up-to-date  
> LogPlayLevel: Error: ERROR: cmd.exe failed with args /c “C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug  
> LogPlayLevel: (see C:\Users\komp\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+unreal+UE\_4.26\Log.txt for full exception trace)  
> LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
> LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 28.524810  
> LogPlayLevel: BUILD FAILED  
> PackagingResults: Error: Launch failed! Unknown Error

---

<div class="post-metadata">

**Author:** ![drew767](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@drew767](https://forums.unrealengine.com/u/drew767)\
**Post date:** [January 17, 2022, 11:07am UTC](https://forums.unrealengine.com/t/deploying-android-execution-failed-for-task-app-processdebugresources/155872/2 "2022-01-17T11:07:19Z")

</div>

Did you find any solution? I have same issue

---

<div class="post-metadata">

**Author:** ![hrustals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hrustals](https://forums.unrealengine.com/u/hrustals)\
**Post date:** [January 17, 2024, 12:23pm UTC](https://forums.unrealengine.com/t/deploying-android-execution-failed-for-task-app-processdebugresources/155872/3 "2024-01-17T12:23:55Z")

</div>

For packaging your software you need to complete the following:

1. Open SDK Manager in your Android Studio software (Configure-SDK Manager)
2. SDK Platforms tab - only Android API 31 checkbox must be checked.
3. SDK Tools tab - you need to use special script from Epic Games to fill necessary checkbox there. First, close Android Studio. This script is located in Unreal Engine folder. I.e. C:\Program Files\Epic Games\UE\_4.27\Engine\Extras\Android. Open “SetupAndroid.bat” in Notepad and change all fields started with “set SDKMANAGER…” to “set SDKMANAGER=%STUDIO\_SDK\_PATH%\cmdline-tools\8.0\bin\sdkmanager.bat” - there will be couple of them. Save the file. In your UE project open settings-android and accept Android license. Run the script and press buttons if you’ll been asked. Restart your PC. After that a couple of checkboxes in your Studio’s SDK Tools tab will be filled (you can check it), and packaging will be successful.  
I spend a lot of time to find this.
