# Build Error: Gradle 8.7 + AGP 8.5.2 + SDK 35 on UE 5.4.4 

**URL:** <https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [August 29, 2025, 9:29am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329 "2025-08-29T09:29:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 29, 2025, 9:29am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/1 "2025-08-29T09:29:16Z")

</div>



---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 29, 2025, 9:29am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/2 "2025-08-29T09:29:20Z")

</div>

Hello,

We upgraded to Gradle 8.7 with AGP 8.5.2, compiling Android with SDK 35 on UE 5.4.4.

For the setup, we followed the guide provided in this link: [https://github.com/EpicGames/UnrealEngine/commit/474ce22414400b9944a2b791c76da35846d62e2d](https://github.com/EpicGames/UnrealEngine/commit/474ce22414400b9944a2b791c76da35846d62e2d)

And we got error as below :

_Build file ‘\<game\_path\>\Intermediate\Android\arm64\gradle\app\build.gradle’ line: 1_

_A problem occurred evaluating project ‘:app’._

_\> Failed to apply plugin ‘com.android.internal.application’._

We are using VS 2022, NDK 25.1.8937393, and Java 17, with the environment variables already configured.

Could you please take a look and suggest possible solutions for this issue?

Let us know if you need more info.

Thanks a lot,

Nga Le

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 30, 2025, 1:18am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/3 "2025-08-30T01:18:48Z")

</div>

Hi Nga,

I was able to successfully backport stock 5.4.4 wutg Gradle 8.7 BSAGP 8.5.2 and built a sample targeting SDK 35/Compile SDK 35 without that gradle error. Does wiping the Gradle caches and deleting the \<gamedir\>/Intermediate/Android directories help?

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 9, 2025, 10:07am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/4 "2025-09-09T10:07:34Z")

</div>

Hello [Content removed]

My apologies for the late response, I was on an extended holiday.

After wiping the Gradle caches and deleting the \<gamedir\>/Intermediate/Android directories, the error still persisted.

I finally found the cause: the issue occurs because the _android.bundle.enableUncompressedNativeLibs_ flag was defined in _gradle.properties_.

This flag should be removed when using AGP 8.0 or higher.

I sincerely apologize for the delayed response, and I truly appreciate your answer.

Best Regards,

Nga Le

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [September 9, 2025, 3:01pm UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/5 "2025-09-09T15:01:11Z")

</div>

Hi Nga,

Thanks for for that information. _android.bundle.enableUncompressedNativeLib_ was indeed deprecated in Gradle 8.0, however I don’t see anywhere in the generation gradle.properties in 5.4 where _android.bundle.enableUncompressedNativeLib_ is defined by UE. Was this property added in a \<gradleProperties\> node in a plugin or application UPL xml file or in a separate Java library?

Best regards,

Stephane

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 10, 2025, 3:02am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/6 "2025-09-10T03:02:32Z")

</div>

Hi [Content removed]

You are absolutely right — the issue lies in the UPL XML file of a plugin, not in UE.

Best Regards,

Nga Le

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [September 10, 2025, 1:25pm UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/7 "2025-09-10T13:25:19Z")

</div>

Thanks for confirming Nga. If this isn’t an internal plugin and you are in a position to share its identity, we can try to let the original developer know.

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 11, 2025, 9:31am UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/8 "2025-09-11T09:31:48Z")

</div>

Hi [Content removed]

It is an internal plugin. I really appreciate your kind and dedicated support.

Thanks a lot,

Nga Le

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [September 11, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/build-error-gradle-8-7-agp-8-5-2-sdk-35-on-ue-5-4-4/2664329/9 "2025-09-11T14:25:31Z")

</div>

Thanks for confirming that Nga.

Best regards.
