# Error in Android Build with Address Sanitizer

**URL:** <https://forums.unrealengine.com/t/error-in-android-build-with-address-sanitizer/1135506>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, bug-report\
**Created:** [April 21, 2023, 8:16am UTC](https://forums.unrealengine.com/t/error-in-android-build-with-address-sanitizer/1135506 "2023-04-21T08:16:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hailongKou1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hailongKou1](https://forums.unrealengine.com/u/hailongKou1)\
**Post date:** [April 21, 2023, 8:16am UTC](https://forums.unrealengine.com/t/error-in-android-build-with-address-sanitizer/1135506/1 "2023-04-21T08:16:15Z")

</div>

In the UnrealBuildTool, the AndroidManifest.xml is generated by function [GenerateManifest](https://github.com/EpicGames/UnrealEngine/blob/5.1/Engine/Source/Programs/UnrealBuildTool/Platform/Android/UEDeployAndroid.cs#L2515).  
The case is that, when enabling Asan check, the android build results in an error as below.

 ![企业微信截图_16820638609284](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/0/0e03dae47f5a8db1e782c4ae33b75b9e2588c668.png)

Browsing the details about the function, it seems that there is a logic error. One line come from [line2574](https://github.com/EpicGames/UnrealEngine/blob/4.27/Engine/Source/Programs/UnrealBuildTool/Platform/Android/UEDeployAndroid.cs#L2574) and another one come from [line2590](https://github.com/EpicGames/UnrealEngine/blob/4.27/Engine/Source/Programs/UnrealBuildTool/Platform/Android/UEDeployAndroid.cs#L2590). If you enable Asan, whatever the value `bExtractNativeLibs` is, there will be this duplicate error.

This error is fixed in 5.1, but for 4.27 maybe the only way is to rebuild unreal build tool from source code.
