# Android Build Fails- Gradle “Could not move temporary workspace to immutable location”

**URL:** <https://forums.unrealengine.com/t/android-build-fails-gradle-could-not-move-temporary-workspace-to-immutable-location/2715427>\
**Category:** Getting Started & Setup\
**Tags:** Android-Packaging, gradle, unreal-engine, question\
**Created:** [April 15, 2026, 5:55am UTC](https://forums.unrealengine.com/t/android-build-fails-gradle-could-not-move-temporary-workspace-to-immutable-location/2715427 "2026-04-15T05:55:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shravanum01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shravanum01](https://forums.unrealengine.com/u/shravanum01)\
**Post date:** [April 15, 2026, 5:55am UTC](https://forums.unrealengine.com/t/android-build-fails-gradle-could-not-move-temporary-workspace-to-immutable-location/2715427/1 "2026-04-15T05:55:06Z")

</div>

Hi everyone,

I’m facing an issue while packaging an Android (ASTC) build in Unreal Engine 5.5.

The build works perfectly in UE 5.4, but in UE 5.5 it consistently fails during the Gradle stage with the following error:

```auto
Execution failed for task ':app:compileDebugAidl'.
> Could not move temporary workspace 
(C:\GradleCache_UE55\caches\transforms-4\...\temp-folder) 
to immutable location 
(C:\GradleCache_UE55\caches\transforms-4\...)

```

**What I’ve tried so far:**

- Cleared `.gradle` cache completely

- Used separate Gradle cache directories per UE version

- Disabled Gradle caching (`org.gradle.caching=false`)

- Disabled parallel builds and daemon

- Added:

- Downgraded Gradle from 8.x → 7.6.1

- Ran Unreal as Administrator

- Disabled Windows Defender and indexing

- Cleaned project folders (`Intermediate`, `Saved`, etc.)

**Environment:**

- Unreal Engine 5.5

- Windows 11

- Android SDK + NDK r25b

- High-end system (i9 CPU)

**Observation:**

- UE 5.4 builds successfully on the same machine

- UE 5.5 fails consistently with the same Gradle transform error

**Question:**  
Has anyone faced this issue in UE 5.5?  
Is there a stable fix, or is this a known Gradle/Windows issue?

Any help would be appreciated 🙏

---

<div class="post-metadata">

**Author:** ![shravanum01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shravanum01](https://forums.unrealengine.com/u/shravanum01)\
**Post date:** [April 17, 2026, 7:09am UTC](https://forums.unrealengine.com/t/android-build-fails-gradle-could-not-move-temporary-workspace-to-immutable-location/2715427/2 "2026-04-17T07:09:12Z")

</div>

Please anyone reply, i need some solution tired of searching the soln
