Eclipse & Android SDK on openSUSE
I woke up at 6 this morning with the urge to investigate writing an Android application. I have been a mostly satisfied user of Android ever since the G1 was first launched. I even switched to T-Mobile to get one from AT&T. The sales person at the time was confused as to why I would switch carriers to get that phone.
Fast forward to this fine morning where I'll make my first attempt at putting my own pixels on my Android device, now a Nexus One.
Unfortunately, Eclipse in openSUSE seems to be a bit out of date. However, the Android ADT Eclipse Plugin is known to not work on 3.6 anyway, so for now I am just sticking with Eclipse 3.4. Additionally, there does seem to be a packaging issue as well that you'll need to resolve.
sudo zypper in eclipse java-1_6_0-sun-develsudo chgrp -Rc users /usr/share/eclipsesudo chmod -Rc g+w /usr/share/eclipse
Note that I explicitly select the Sun Java devel package because Eclipse is allegedly faster using this Java implementation. If you prefer not to taint your system with proprietary software, the default-selected java-1_6_0-openjdk-devel should work just fine. The permissions fixing against /usr/share/eclipse is to make sure that Eclipse software updates work properly.
Start Eclipse, and go to Help → Software Updates and then select the Available Software tab and finally Add Site. Add the two following sites:
- http://download.eclipse.org/releases/ganymede/
- https://dl-ssl.google.com/android/eclipse/
When both sites show up (are no longer "Pending"), check the top-level check box for the Android site to select all Android plugins, then click Install and walk through the installation wizard.
With the installation complete, quit and restart Eclipse. Go to Window → Preferences and choose the Android section. Here you need to set up your SDK. I'm assuming you've already installed it.
Now you can go to Window → Android SDK and AVD Manager. Select Available Packages and install the SDKs, documentation, and samples packages that interest you. I'm sticking to the 1.6 SDK I guess for now, since not many people seem to have the 2.2 goodness yet. After you install an SDK, you can then create a virtual device that targets it.
Good luck!



July 19th, 2010 - 09:48
Thank you, I’ve been fighting to install the Android SDK – I managed on Fedora 13, but not OpenSUSE 11.3
July 19th, 2010 - 11:04
Awesome tutorial.
July 19th, 2010 - 11:21
Did you really install Eclipse with zypper from the oss repo?
I tried this earlier and somehow I found out that I need to download Eclipse from eclipse.org and install it by myself instead of using the rpm package to get the Android section in the preferences.
July 19th, 2010 - 11:53
Just in case you don’t know:
http://developer.android.com/resources/dashboard/platform-versions.html
I think in “a few weeks” you may be interested into change at least for 2.1. But… who knows…
July 19th, 2010 - 12:11
I just downloaded eclipse archive from eclipse.org (2.5) Extracted it and launched eclipse. Added Google Android URL and installed the plugin. I think sticking to upstream eclipse releases is a much better job, as we are anyway not doing any distro-specific customization for openSUSE. Thoughts ?
July 19th, 2010 - 17:15
somebody have tried the same thing with netbeans?
July 19th, 2010 - 17:43
You have 2 nice playgrounds:
http://www.gitorious.org/opensuse/yastroid
http://www.gitorious.org/opensuse/obs-client-android
July 20th, 2010 - 14:18
Nice tutorial, but for Factory this already broke as eclipse got removed from Factory this morning:
http://lists.opensuse.org/opensuse-commit/2010-07/msg00239.html