You are not logged in.
Hi,
I've been trying to install android on my computer running the 64 bit version of Arch Linux.
Since I wanted to use Android with eclipse, first I installed eclipse 3.4.1 from pacman. Then I downloaded android zip file and extracted in a directory. Then according to the instructions available on their website, I tried to install ADT plugin for Eclipse. Since, Android editor depended on wst plugin, and wst depended on some other plugin, I forgot about installing wst and just installed Android Development Tools (ADT).
In the next step, I had to map the sdk directory to the eclipse by going to Window - Preferences - Android. After pressing browse I found my extracted SDK directory. When I pressed apply, I got the following error:
[2009-03-06 00:37:19 - adb]Failed to get the adb version: Cannot run program "/home/myname/android/sdk/tools/adb": java.io.IOException: error=2, No such file or directory
However, such files does exist. I don't know why it's complaining about it.
I was wondering if anyone was able to get android and eclipse running together on their Arch Linux machine?
Thanks in advance.
Offline
Alright, I guess the problem is with the JDK.
I just downloaded Android SDK on my 32 bit ubuntu laptop. Then I went to tools, and double clicked on emulator on nautilus and was able to see the emulator. However, I'm not able to see such thing using my 64 bit Arch Linux machine.
Offline
I'm not sure if you're getting jdk or 64 bit issues. I can't tell you how to set up eclipse, but this is all I did to get the sdk working:
pacman -R openjdk
pacman -S jdk
yaourt android-sdk
(use makepkg if you don't have yaourt installed)
cd /opt/android-sdk/
./tools/emulator
I'm using the jdk package rather than openjdk, but I don't know if that's necessary.
Dusty
Offline
BTW, cool to see another android dev on Arch. :-)
Dusty
Offline
First of all, I'm not an android dev. I just started looking at it yesterday. There's a long way ahead of me to be called an android dev.
I think there are some components of openjdk6 left on my computer. I remember when I first installed Arch, it came out with openjdk6. Once I was trying to install Vuze, but because of openjdk6 it didn't work. I uninstalled it and then installed Sun JDK, but still Vuze didn't download bittorrent files. Because of that, I forgot about Vuze and installed rtorrent. Since rTorrent was a really CLI based application I really liked it.
A few weeks ago I was going to give a try to KDE, so when I installed it, it complained about the conflict between JDK and openjdk. That is, I uninstalled JDK in order to installed KDE. After using KDE for a few days, I didn't like it, so I uninstalled it.
Yesterday, to get android working, I uninstalled openjdk and installed Sun JDK. That's why I think there are some components of openjdk left on my computer that don't allow me to run the android emulator using ./emulator command.
PS. I don't know why they ship Arch with the openjdk6. Isn't Sun JDK open source now? I really appreciate the effort they put on developing openjdk, but most applications have problem with it.
Offline
Sun JDK is not 100% opensource yet, that's why openjdk is the prefered default application but it is also true that openjdk doesn't have the entire API ported so it could lend some problems.
Some time ago there was a notice about this in the main archlinux webpage and they explained why they'll stay with openjdk if you are interested in reading it.
On the other hand, you can maybe try uninstalling with -Rcsn parameters in pacman, this can help you with some troubles you mentioned above.
ISC - Ignacio Marmolejo
ArchLinux & GNOME User.
Offline
pacman -Rcsn openjdk6 removed the following packages from my computer:
Remove (4): swt-3.3.2-1 eclipse-3.4.1-1 bcprov-1.38-1 openjdk6-1.5-0.1
I installed jdk again, but still not able to run the emulator using ./emulator. It says no such file or directory, while it really exists.
Offline
I had the same problem as you, but after installing a few packages I managed to get the emulator to run, I do not know if more are needed for the other tools, though.
The packages are:
lib32-libstdc++5
lib32-libx11
lib32-ncurses
lib32-zlib
lib32-sdl
lib32-libxext
Hopefully that will work for you as well.
Offline
I just got back home and installed all packages that you mentioned. The emulator is working like a charm.
Thanks a lot.
Offline
I had a few dependency issues with installing the ADT plugin for Eclipse, along with other plugins (Subclipse). I solved it by completely removing the pacman Eclipse package (pacman -R eclipse) and doing a manual install of Eclipse. Every plugin installed perfectly after that~
the funk soul brother.
Offline
I've been trying to make it works but those packeges aren't avalaibles and it does not work with lib32 wich i have tried.
adb returns:
adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64
and ddms retruns:
57:50 E/ddms: shutting down due to uncaught exception
57:50 E/ddms: java.lang.UnsatisfiedLinkError: /opt/android-sdk/tools/lib/libswt-pi-gtk-3236.so: /opt/android-sdk/tools/lib/libswt-pi-gtk-3236.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
at com.android.ddms.UIThread.runUI(UIThread.java:329)
at com.android.ddms.Main.main(Main.java:97)
any idea??
Offline
Hi endSly.
I had the same problem. I solved it with my modified PKGBUILD which defines a few dependencies an replaces SWT with a 64Bit-Version.
pkgname=android-sdk
pkgver=1.5_r2
pkgrel=1
pkgdesc="Google Android SDK"
arch=('i686' 'x86_64')
url="http://code.google.com/android/"
license=('custom')
if [ "$CARCH" = "x86_64" ]; then
depends=('jre' 'lib32-libstdc++5' 'lib32-libx11' 'lib32-ncurses' 'lib32-zlib' 'lib32-sdl' 'lib32-libxext' 'swt')
else
depends=('jre')
fi
source=(http://dl.google.com/android/android-sdk-linux_x86-$pkgver.zip \
android.sh)
md5sums=('1d3c3d099e95a31c43a7b3e6ae307ed3' 'e7f23c39d02a3a280c746f7398bf5114')
build() {
mkdir -p $pkgdir/opt && \
mkdir -p $pkgdir/etc/profile.d && \
mv $srcdir/android-sdk-linux_x86-$pkgver $pkgdir/opt/android-sdk && \
cp $srcdir/android.sh $pkgdir/etc/profile.d && \
rm $pkgdir/opt/android-sdk/tools/lib/libswt* && \
cp /usr/lib/libswt-* $pkgdir/opt/android-sdk/tools/lib && \
cp /usr/share/java/swt.jar $pkgdir/opt/android-sdk/tools/lib && \
cd $pkgdir/opt/android-sdk && \
find -type d -exec chmod 755 \{\} \; && \
find -exec chmod +r \{\} \; && \
chmod +x $startdir/pkg/etc/profile.d/android.sh
}
I hope this will help you, too.
Offline
but those dependends are not in AUR
depends=('jre' 'lib32-libstdc++5' 'lib32-libx11' 'lib32-ncurses' 'lib32-zlib' 'lib32-sdl' 'lib32-libxext' 'swt')
Offline
ok, solved, i hadn't community repository
Offline
I had this problem recently installing on Arch64. I finally got it working by installing the aur/eclipse-jee package (this took me a while to find because I grepped for j2ee!). I also had to add in /opt/java/bin and /opt/eclipse to my path, because for some reason the package build didnt add it. Then instead of downloading the sdk, I used the eclipse upgrade URL for the ADT:
https://dl-ssl.google.com/android/eclipse/
Make sure you also install the android SDK
This is probably the better way to do it since it can be uninstalled later, and you don't have to do any manual installation.
Last edited by habitue (2009-07-01 04:08:18)
Offline
I'm not sure if you're getting jdk or 64 bit issues. I can't tell you how to set up eclipse, but this is all I did to get the sdk working:
pacman -R openjdk
pacman -S jdk
yaourt android-sdk
(use makepkg if you don't have yaourt installed)
cd /opt/android-sdk/
./tools/emulatorI'm using the jdk package rather than openjdk, but I don't know if that's necessary.
Dusty
Thx for this tip. Since yesterday i'm an Arch64 user too and your description made it easy for me to get my android development environment up and running.
btw, using openjdk6 works for me so far.. (i did not do heavy tests but everything seems to work so far)
cya
Offline
Nice. I'm trying to look into Android development, which means I have to learn som java too I guess . I want to stream audio from android with TCP to an rsound server
Well, I got some C code running at least :'o Is there a good way to start a C program without an emulator?
Last edited by Themaister (2010-03-08 21:36:03)
Offline
I know this is resurrection of the living dead, but I figured it's better than opening a new thread for one that's a month and a half old.
When I try to install ADT addon in eclipse I get this error in details
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846)
Missing requirement: Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
Anyone have a clue what that means?
Offline
It means you should be looking for the eclipse-android package in the AUR.
Ok, that enabled me to install the ADT addons for eclipse. I configured them so that my directory was /opt/android-sdk and when I run ./tool/emulator I get this :
[mike@myhost android-sdk]$ ./tools/emulator
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
Otherwise, follow the instructions in -help-disk-images to start the emulator
Sorry to be such a pain, but thanks in advance
Offline
falconindy wrote:It means you should be looking for the eclipse-android package in the AUR.
Ok, that enabled me to install the ADT addons for eclipse. I configured them so that my directory was /opt/android-sdk and when I run ./tool/emulator I get this :
[mike@myhost android-sdk]$ ./tools/emulator
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).Otherwise, follow the instructions in -help-disk-images to start the emulator
Sorry to be such a pain, but thanks in advance
This is because you must make an image (avd) to use with the emulator. To do so, you can run 'android' from the terminal, select the "Virtual Devices" option, and create avds. In addition this tool allows you to install documentation, sample code, and different platform versions.
Offline
I had the same problem as you, but after installing a few packages I managed to get the emulator to run, I do not know if more are needed for the other tools, though.
The packages are:
lib32-libstdc++5
lib32-libx11
lib32-ncurses
lib32-zlib
lib32-sdl
lib32-libxextHopefully that will work for you as well.
..just somebody else confirming that this works for arch 64
thank you!!!!
Offline
Hey all,
I'm quite new to android, and happily the android-sdk in aur seemed to install fine on my arch 64. However...
I have no "targets" and running /opt/android-sdk/tools/android complains "a target must be selected in order to create an AVD."
Reading this thread and googling, I haven't found any answer. Thanks in advance if you can help.
-Dave
Offline
I did find an answer after all... http://stackoverflow.com/questions/2122 … eating-avd
The GUI is not intuitive!
Offline
Looks like I'm the latest necromancer for this thread.
I'm trying to get the android development software installed on my archlinux machine. I have android-sdk, eclipse, the eclipse-android plugin, and any other package I can find. However, I must not have installed something because I don't have the 'adb' command. What package am I missing?
Basically I want to be able to sync the droid and installed development packages and anything else that might not be available in the droid market app.
Offline