Android SDK update tool

C, C++, Python, Perl, Shell, etc.

Android SDK update tool

Postby Bateleur » 19 Feb 2010, 05:19

Hi,

This time I'm trying to run the Android SDK update tool (it is a java application). The application exits with this exception:

Code: Select all
Exception in thread "main" 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.sdkuilib.internal.repository.UpdaterWindowImpl.open(UpdaterWindowImpl.java:93)
   at com.android.sdkuilib.repository.UpdaterWindow.open(UpdaterWindow.java:110)
   at com.android.sdkmanager.Main.showMainWindow(Main.java:281)
   at com.android.sdkmanager.Main.doAction(Main.java:247)
   at com.android.sdkmanager.Main.run(Main.java:92)
   at com.android.sdkmanager.Main.main(Main.java:81)
>


I have set JAVA_HOME to /usr/local/jdk1.6.0 and linux-f10-gtk2 is installed.

I'm wondering if anyone has had success running the Android update tool. What should I install/configure to get this running?

Thanks!
Bateleur
Junior Member
 
Posts: 34
Joined: 18 Dec 2009, 15:26

Postby OH » 19 Feb 2010, 11:59

[cmd=]usr/ports]# make search name=swt[/cmd]
Code: Select all
(...)
Port:   swt-3.5.1
Path:   /usr/ports/x11-toolkits/swt
Info:   Standard Widget Toolkit for Java
(...)
Port:   swt-devel-3.6.m5,1
Path:   /usr/ports/x11-toolkits/swt-devel
Info:   Standard Widget Toolkit for Java


Did you try installing one of those?
OH
Member
 
Posts: 209
Joined: 25 Aug 2009, 09:32
Location: The Netherlands

Postby DutchDaemon » 19 Feb 2010, 14:04

@Bateleur, please use more descriptive topic titles.
User avatar
DutchDaemon
Old Fart
 
Posts: 10464
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby Bateleur » 19 Feb 2010, 15:10

I did not install any swing port/package. I thought it was installed by default with the jdk. I will try that and see if it fixes my problem.

Thanks!

@DutchDaemon: I will do that - use more descriptive topic titles - in the future.

Cheers!
Bateleur
Junior Member
 
Posts: 34
Joined: 18 Dec 2009, 15:26

Solved

Postby Ievgen » 08 May 2012, 22:52

Hi guys, everyone looking for solution here are the steps:
  1. Install [FILE]linux-sun-jdk1.6.0[/FILE]
  2. Edit the [FILE]$ANDROID_SDK_HOME/tools/android[/FILE] script, replace the following line:
    Code: Select all
    java_cmd="java"

    with this:
    Code: Select all
    java_cmd="/usr/local/linux-sun-jdk1.6.0/bin/java"
  3. Run [FILE]/compat/linux/bin/bash[/FILE] as root
  4. Locate the [FILE]libswt-gtk-3550.so[/FILE] file on your machine, mine was located in [FILE]/var/tmp/swtlib-64[/FILE] (don't ask me why)
  5. [FILE]ldconfig -v /var/tmp/swtlib-64[/FILE]
  6. Verify: [FILE]ldconfig -p | grep swt[/FILE]
  7. Close linux terminal
You should be able to launch SDK manager now.
Ievgen
Junior Member
 
Posts: 22
Joined: 08 May 2012, 21:11

adb only

Postby royj » 29 Sep 2012, 22:37

If you need just adb, try this - http://blog.bsdroid.org/?category_name=adb ( http://bsdroid.org/downloads/adb.tar.bz2 )
Works for me, FreeBSD 9.0-RELEASE-p3 i386, Atrix 4G MB860
royj
Junior Member
 
Posts: 7
Joined: 01 Oct 2010, 07:47
Location: Saint-Petersburg, Russia

Postby jotawski » 03 Oct 2012, 03:01

Ievgen wrote:Hi guys, everyone looking for solution here are the steps:
  1. Install [FILE]linux-sun-jdk1.6.0[/FILE]
  2. Edit the [FILE]$ANDROID_SDK_HOME/tools/android[/FILE] script, replace the following line:
    Code: Select all
    java_cmd="java"

    with this:
    Code: Select all
    java_cmd="/usr/local/linux-sun-jdk1.6.0/bin/java"
  3. Run [FILE]/compat/linux/bin/bash[/FILE] as root
  4. Locate the [FILE]libswt-gtk-3550.so[/FILE] file on your machine, mine was located in [FILE]/var/tmp/swtlib-64[/FILE] (don't ask me why)
  5. [FILE]ldconfig -v /var/tmp/swtlib-64[/FILE]
  6. Verify: [FILE]ldconfig -p | grep swt[/FILE]
  7. Close linux terminal
You should be able to launch SDK manager now.

Hi sirs,

Apologized me but I do not know where $ANDROID_SDK_HOME is.
best regards,
jotawski

http://makham.blogspot.com FreeBSD for thai
User avatar
jotawski
Member
 
Posts: 198
Joined: 18 Nov 2008, 11:04
Location: park kred/nontabury/thai

Postby YZMSQ » 28 Oct 2012, 15:31

jotawski wrote:Hi sirs,

Apologized me but I do not know where $ANDROID_SDK_HOME is.

Mine is ~/.android-sdk-linux. You could check it. ;)
We are all in the gutter, but some of us are looking at the stars.
Unix Toolbox: http://cb.vu/unixtoolbox.xhtml
User avatar
YZMSQ
Member
 
Posts: 212
Joined: 01 Nov 2010, 14:09
Location: Hangzhou,Zhejiang,PRC

Postby laufdi » 21 Aug 2013, 06:50

I have no [FILE]libswt-gtk-3550.so[/FILE] but [FILE]/usr/local/lib/libswt-gtk-3557.so[/FILE] after installing the [FILE]swt[/FILE] port. I can run [FILE]tools/android[/FILE] with native java when I link [FILE]libswt-gtk-3557.so[/FILE] to [FILE]libswt-gtk.so[/FILE] and [FILE]libswt-pi-gtk-3557.so[/FILE] to [FILE]libswt-pi-gtk.so[/FILE]. But then I get
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.eclipse.swt.internal.gtk.OS._G_TYPE_INT()J
        at org.eclipse.swt.internal.gtk.OS._G_TYPE_INT(Native Method)
        at org.eclipse.swt.internal.gtk.OS.G_TYPE_INT(Unknown Source)
        at org.eclipse.swt.widgets.Tree.getColumnTypes(Unknown Source)
        at org.eclipse.swt.widgets.Tree.createHandle(Unknown Source)
        at org.eclipse.swt.widgets.Widget.createWidget(Unknown Source)
        at org.eclipse.swt.widgets.Control.createWidget(Unknown Source)
        at org.eclipse.swt.widgets.Scrollable.createWidget(Unknown Source)
        at org.eclipse.swt.widgets.Tree.createWidget(Unknown Source)
        at org.eclipse.swt.widgets.Control.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Scrollable.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Composite.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Tree.<init>(Unknown Source)
        at org.eclipse.jface.viewers.CheckboxTreeViewer.<init>(CheckboxTreeViewer.java:81)
        at com.android.sdkuilib.internal.repository.ui.PackagesPage.createContents(PackagesPage.java:210)
        at com.android.sdkuilib.internal.repository.ui.PackagesPage.<init>(PackagesPage.java:181)
        at com.android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.createContents(SdkUpdaterWindowImpl2.java:192)
        at com.android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.open(SdkUpdaterWindowImpl2.java:139)
        at com.android.sdkuilib.repository.SdkUpdaterWindow.open(SdkUpdaterWindow.java:111)
        at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:356)
        at com.android.sdkmanager.Main.doAction(Main.java:334)
        at com.android.sdkmanager.Main.run(Main.java:120)
        at com.android.sdkmanager.Main.main(Main.java:103)



So I should probably use the Linux JDK. There I don't have [FILE]libswt-gtk-3550.so[/FILE] etc. I copied them to [FILE]/compat/linux/usr/lib[/FILE]. Now I get the same result as above.
laufdi
Junior Member
 
Posts: 67
Joined: 18 Jul 2009, 11:00


Return to Userland Programming & Scripting

Who is online

Users browsing this forum: No registered users and 2 guests