# Build Android fail if more textures added to project

**URL:** <https://forums.unrealengine.com/t/build-android-fail-if-more-textures-added-to-project/228123>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [May 7, 2021, 2:14am UTC](https://forums.unrealengine.com/t/build-android-fail-if-more-textures-added-to-project/228123 "2021-05-07T02:14:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rz1974gmail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rz1974gmail](https://forums.unrealengine.com/u/rz1974gmail)\
**Post date:** [May 7, 2021, 2:14am UTC](https://forums.unrealengine.com/t/build-android-fail-if-more-textures-added-to-project/228123/1 "2021-05-07T02:14:01Z")

</div>

Hi,

My Unreal Engine is 4.26.2, I have successful build Android APK recently, but after I added more textures or my texture size over 4K, I will end up getting error message from gradle that  
java.lang.OutOfMemoryError  
please help…Or our project will be in a trouble…

 ![Screenshot 2021-05-07 095547](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/6/96e5ec98fdf68d7e019ab06ce8b1bd1ca7b231eb.png)
