Problems with the SDK using Ubuntu 10.04 64 bit

by Joshua LÁúČckers » Wed, 14 Apr 2010 03:03:42 GMT


Sponsored Links
 I have downloaded the SDK and installed the necessary plugins for
Eclipse to start developing Android applications.
Whenever I try to start the ddms I get the following error(s):

18:57 E/ddms: shutting down due to uncaught exception
18:57 E/ddms: java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or swt-
gtk in swt.library.path, java.library.path or the jar file
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
        at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
        at com.android.ddms.UIThread.runUI(UIThread.java:420)
        at com.android.ddms.Main.main(Main.java:105)

I am using the open jdk and I already installed the package libswt-
gtk-3.5-java.
Does anyone know how to solve this problem?

--



Other Threads

1. How to apply LOCAL_AAPT_FLAGS to eclipse project?

Hi,

In the Android.mk, there are AAPT flags set as below.
LOCAL_AAPT_FLAGS := -0 .dat

I'm wondering how to apply this AAPT flag in the eclipse project, so that
the .dat raw data files will not be compressed in .apk? thanks.


Regards,
Moontain

--~--~---------~--~----~------------~-------~--~----~

2. Error inflating class of custom component

I'm trying to implement an custom component by extends TextView and
override all counstructor, but I always get "Error inflating class"
exception when I run my program in the emulator.

What's worng with my code?

Here is my custom component source code:
==================
import android.widget.TextView;
import android.content.Context;
import android.util.AttributeSet;

public class MaidDialogView extends TextView
{
    public MaidDialogView (Context context)
    {
        super (context);
    }

    public MaidDialogView (Context context, AttributeSet attrs)
    {
        super (context, attrs);

    }

    public MaidDialogView (Context context, AttributeSet attrs, int
defStyle)
    {
        super (context, attrs, defStyle);
    }
}

==================
And here is my layout XML:
==================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent">


    <view class="org.bone.MaidDialogView"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_weight="4"
          android:text="Hello World, MaidroidGTD"/>

</LinearLayout>
==================
--~--~---------~--~----~------------~-------~--~----~

3. ECDSA for a Universal Keystor

4. End user IP for android

5. Limit the memory usage of android.

6. Can codesourcery or some other compiler be used for compiling android

7. How to change the selected item's layoutparams in GridView?