Android: Snow Leopard breaks DDMS

If you installed Snow Leopard and you are using the Android SDK, you will find that DDMS is broken due to Snow Leopard now including the 64-bit Java version and the Android SDK currently does not support a 64-bit SWT version.

You will most likely get the following error:
MagicDudeAir:tools GNaschenweng$ ./ddms
30:59 E/ddms: shutting down due to uncaught exception
30:59 E/ddms: java.lang.UnsatisfiedLinkError: /Users/GNaschenweng/Downloads/Android/android-sdk-mac_x86-1.5_r3/tools/lib/libswt-pi-carbon-3236.jnilib: no suitable image found. Did find: /Users/GNaschenweng/Downloads/Android/android-sdk-mac_x86-1.5_r3/tools/lib/libswt-pi-carbon-3236.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)

To fix this is quite simple, by adjusting the DDMS script from
if [ uname = "Darwin" ]; then

if [ uname = "Darwin" ]; then
os_opts="-XstartOnFirstThread -d32"

Print Friendly