Help Needed: Gradle Build Failure in UE5 for Android (ASTC) - 'subst' Command Not Recognized

Hi everyone,

I’m encountering an issue while trying to package my Android project in Unreal Engine 5 (UE5) with the ASTC texture format. The build fails with the following error:


It seems like the issue is related to the subst command not being recognized.

Steps I’ve Taken So Far:

  1. I’ve confirmed that my system’s environment variables are properly set
  2. I’ve also checked the Android SDK and NDK paths in UE5 settings, and they appear to be correct.
  3. I manually tested the subst command in the command line, and it works fine on my system.

My Unreal Engine Version is 5.4.4

Any help would be greatly appreciated! I’m stuck and would love to get some insights from others who might have faced this issue.

Thanks in advance!