Build-tool 32.1.0 rc1 is missing DX at


Making a note of this becasue it’s bound to break at some point.

After a fresh MacOS Monterey install and Android Studio 2 install and JDK 1.8 install (from Oracle) you need set your paths below, you might get this error:

Build-tool 32.1.0 rc1 is missing DX at

Used below to create a symlink (changing ‘xxx’ to your correct path.

ln -s /Users/xxxx/Library/Android/sdk/build-tools/32.1.0-rc1/d8 /Users/xxxx/Library/Android/sdk/build-tools/32.1.0-rc1/dx

ln -s /Users/xxxx/Library/Android/sdk/build-tools/32.1.0-rc1/lib/d8.jar /Users/xxxx/Library/Android/sdk/build-tools/32.1.0-rc1/lib/dx.jar

Found in comments here https://stackoverflow.com/questions/68387270/android-studio-error-installed-build-tools-revision-31-0-0-is-corrupted

To set paths after recieving error Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation edit the xshenv file (using vs code in this case):

code ~/.zshenv

And add these lines (not sure exactly which are necessary but it all works.

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Homeexport PATH=$JAVA_HOME/bin:$PATHexport PATH=$PATH:/Library/Android/sdk/platform-toolsexport PATH=$PATH:/Library/Android/sdk/toolsexport ANDROID_SDK_ROOT=~/Library/Android/sdkexport ANDROID_HOME=~/Library/Android/sdk

,

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.