It seems the brilliant minds at Google forgot to rename two files before shipping the Android SDK to the public.
The accepted solution to that stackoverflow post is to manually rename the offending files. Unfortunately my android sdk directory is in the nix store, which is read only.
What I’d need to do is (in pseudo nix-bash syntax)
ln -s \
${android-sdk}/share/android-sdk/build-tools/32.0.0/d8 \
${android-sdk}/share/android-sdk/build-tools/32.0.0/dx
ln -s \
${android-sdk}/share/android-sdk/build-tools/32.0.0/lib/d8.jar \
${android-sdk}/share/android-sdk/build-tools/32.0.0/lib/dx.jar
where android-sdk
is the package containing my android environment. Can I add an overlay or something else to make this work?