To the Eclipse thing:
To use the ADT (and to allow Eclipse to use the ADT) in Linux, you have one of two options:
- Run 32-bit Ubuntu (bleh)
- Run 64-bit Ubuntu and enable
multiarch
support (yay!)
If it is not already enabled you can enable multiarch support on Ubuntu by running the following command:
sudo dpkg --add-architecture i386
Once this is done, you will need to add the 32 bit libraries you need in order to use the ADT(depending on which Ubuntu you are using):
# Ubuntu 12.04
apt-get install ia32-libs
# Ubuntu 13.04
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
# Ubuntu 13.10
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1
If you want access to the SDK and ADB from a terminal, you need to export the relevant paths in in your .bashrc
file:
sudo nano .bashrc
# At the end of the file add
PATH=$PATH:$HOME/AndroidSDK:$HOME/AndroidSDK/tools
export PATH
PATH=$PATH:$HOME/AndroidSDK/platform-tools
export PATH
To create the launcher, you can have a look here.
To address one of your comments:
I am only going to say this about the debate going on here: each operating system has its strengths and weaknesses. That being said, let's get to the answer.
Windows requires backwards compatibility (due to the NT kernel and other things). This means that a Windows installation is larger, but there are very few things that 64 bit Windows can't run, including 32 bit application such as Eclipse and the Android SDK. This also means that most things work out of the box.
Linux requires additional setup because the base installation (even one with a GUI) does not require as many compatibility libraries (in Windows, .dll(s)) in order to function. This makes for smaller installations that can be targeted to specific hardware. This also means that you can run Linux on older/less powerful systems (the real goal of Linux, in my mind). The problem is that additional functionality (such as 32 bit applications in a 64 bit environment) require additional setup.
Only a few Linux distros (Arch and Fedora come to mind) have the latest and greatest of software versions in their repos. This is because most Linux distros are about stability. I cannot speak for Arch, as I have little experience with it. However, Fedora is essentially the test bed for RHEL (RedHat Linux Enterprise). For distros like that, it isn't about stability, it is about testing out what will work on the newest hardware. It can be a real pain as the user is the one who ends up testing the software (and drivers and libraries and kernels). This can be real hell. If you think wasting a few hours trying to get a program to work is terrible, imagine recovering and entire system (and your source code and your data and your sanity) when something untested breaks or melts down.
Distributions like Ubuntu (LTS in particular) are about stability. They usually do not include things in the stable repos that have not been thoroughly tested. This is why things are a little slow on the uptake when it comes to the latest and greatest. The trade off is you miss out on some of the new features, but you have a stable system.
You can install their unstable versions (I think 14.04 is the current testing for Ubuntu), but what was said about Fedora et al. applies. That handles that part of the question (I hope).
eclipse
. So to be accurate, you have to say, "eclipse made running the program so difficult". Just explore Ubuntu Software Center and you will find that Ubuntu and Linux way of running programs is much more powerful than Windows' way. – Danatela Apr 07 '14 at 08:56