UATHelper: Packaging (Android (ASTC)): Build-tool 31.0.0 is missing DX at C:\Users\rober\AppData\Local\Android\Sdk\build-tools\31.0.0\dx.bat
I get this same exact error every time I install it…apparently either Unreal is expecting d8.bat and d8.jar to be named dx.bat and dx.jar or the installation for the build-tools is screwing up the naming convention…
I actually was able to fix this error just by duplicating those files and re-naming them. If you check the Github repository bug reports there is actually a thread that was opened specifically inquiring about this and reporting it as a bug. This wasn’t even reported as a bug for Unreal, it was reported by coders that use this build tool outside of Unreal.
Appreciate, friend. No worries if you can’t find it though, I just found a couple of alternate posts on stack-overflow giving a bit of insight into it. Seems like its just a simple name mix-up on the SDK build toolchain.
Took me a while to figure this out but everything is working now!
Thank you for this tip. To add an additional help might be AFTER REMOVING THE CORRUPTED version from SDK Tools + to also delete the folders INTERMEDIATE - SAVED - BINARIES before trying a new build.
This is not work for me when I try Android SDK Build Tools 33.0.0-rc2.
Then I try kenjikr’s solution in this discussion thread (using 30.0.3).
When I can build android apk with 30.0.3,then I remove 30.0.3 and install the 33.0.0-rc2, finally I can build andoird apk with 33.0.0-rc2.
I don’t know why , but it works for me.
(My unreal Version is 4.27.2)
Digging and digging through forum posts I have tried as many of the solutions (and youtube videos) as I could but I still can’t get UE5 to build to android. Has anyone lately gone through and successfully built a project to android without the gradle / intermediate errors?
Ok so I finally got it working. Turns out the final thing that I changed to get it working was to download the android 33.0.0-rc3 (-rc2 didn’t seem to be available anymore).
Now the project builds without errors and works on my samsung phone.
The ‘MyKey’ issue is apparent after the build shutdown and above the error you find this:
FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:packageRelease’.
UATHelper: Packaging (Android (ASTC)): > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
UATHelper: Packaging (Android (ASTC)): > com.android.ide.common.signing.KeytoolException: Failed to read key Key from store “D:\MyProject\Intermediate\Android\arm64\ExampleKey.keystore”: No key with alias ‘Key’ found in keystore