# Packing error solution android

**URL:** <https://forums.unrealengine.com/t/packing-error-solution-android/2096013>\
**Category:** Mobile\
**Tags:** unreal-engine\
**Created:** [October 30, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/packing-error-solution-android/2096013 "2024-10-30T15:36:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KekC\_CSM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KekC\_CSM](https://forums.unrealengine.com/u/KekC_CSM)\
**Post date:** [October 30, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/packing-error-solution-android/2096013/1 "2024-10-30T15:36:44Z")

</div>

ProjectSettings:

Minimum 24  
Targed 24

JDK matchndk  
NDK android-24

When packaging Android spawn this error:

Task :permission\_library:generateDebugRFile  
UATHelper: Packaging (Android (ETC2)): \> Task :app:processDebugResources FAILED  
UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception.  
UATHelper: Packaging (Android (ETC2)): \* What went wrong:  
UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:processDebugResources’.  
UATHelper: Packaging (Android (ETC2)): \> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade  
UATHelper: Packaging (Android (ETC2)): \> AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.  
UATHelper: Packaging (Android (ETC2)): This should not happen under normal circumstances, please file an issue if it does.

Found solution:

> <https://stackoverflow.com/questions/67233807/android-gradle-build-error-aapt2-aapt2-4-1-0-6503028-windows-daemon-0-unexpec>

> <https://stackoverflow.com/questions/60461997/dependent-features-configured-but-no-package-id-was-set-when-creating-a-new-m/62104026#62104026>

where is location file to set:

object Plugins {

const val androidApplication = “com.android.application”  
const val androidLibrary = “com.android.library”  
}

:app

plugins {  
id(Plugins.androidApplication)  
…

}

:mymodule

plugins {  
id(Plugins.androidLibrary)  
…  
}
