DDMS under Mac OS X 10.5 (Snow Leopoard)

by Joel » Mon, 31 Aug 2009 01:40:35 GMT

Sponsored Links
 Under snow leopard I get an error running ddms:

11:17 E/ddms: shutting down due to uncaught exception
11:17 E/ddms: java.lang.UnsatisfiedLinkError: <ANDROID_HOME>/tools/lib/
libswt-pi-carbon-3236.jnilib:  no suitable image found.  Did find:
<ANDROID_HOME>/tools/lib/libswt-pi-carbon-3236.jnilib: no matching
architecture in universal wrapper
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1771)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1045)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
        at org.eclipse.swt.internal.carbon.OS.<clinit>(OS.java:20)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:943)
        at org.eclipse.swt.widgets.Display.create(Display.java:923)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:118)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:754)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:745)
        at com.android.ddms.UIThread.runUI(UIThread.java:330)
        at com.android.ddms.Main.main(Main.java:97)

Any fixes for this availabe yet?



DDMS under Mac OS X 10.5 (Snow Leopoard)

by Joel Fischer » Mon, 31 Aug 2009 01:40:54 GMT

 Sorry, the subject line should have stated Mac OS X 10.6, of course.

Under snow leopard I get an error running ddms:


Sponsored Links

DDMS under Mac OS X 10.5 (Snow Leopoard)

by Xavier Ducrohet » Mon, 31 Aug 2009 01:48:26 GMT

 The SWT library uses a native component that must be loaded by the VM.
At this time we only provide the 32bit version.
I'm guessing that in Snow Leopard the default VM is now 64 bit instead
of 32 bit.

To change this go in Applications folder, then Utilities, and launch
the "Java Preferences" app. You'll be able to set a 32 bit VM as the
default one.

Eclipse 3.5 added support for 64bit SWT on MacOS, so we'll migrate to
this to support 32/64 bit on MacOS.


Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.


DDMS under Mac OS X 10.5 (Snow Leopoard)

by foo » Tue, 01 Sep 2009 08:07:12 GMT

 Just in case that didn't work for anyone, for qmodify ddms (TextEdit
works) and add '-d32' to the Java options to force the Java VM to 32
bit by modifying this code:

# Mac OS X needs an additional arg, or you get an "illegal thread"
if [ `uname` = "Darwin" ]; then

to this:

# Mac OS X needs an additional arg, or you get an "illegal thread"
if [ `uname` = "Darwin" ]; then
    os_opts="-XstartOnFirstThread -d32"



Other Threads

1. listen for / notify on widget removal?

is there a way to listen for the removal of a widget? i have a widget 
that updates itself via setting alarms. when the widget is removed, the 
service behind the widget continues to run. that's not what the user 
expects i think.

any ideas are appreciated.



2. are all Android 1.5 devices upgradable to 2.1

hi all,
being my first post here,just curious to know whether Android 1.5 is
upgradable to Android 2.1?
Or as a developer I should concentrate on the new Os and as an user I
should buy a new device which is powered by the new OS instead of
trying to upgrade the old OS with the new one.


3. Monkey scripting

4. move a triangle...

5. UrlConnection does not support output

6. on click listener application has stopped unexpectedly

7. Install Error ADT Plugin on Windows