Installation of Android Development Tools on Ubuntu linux and a Galaxy Tab
These are some notes from an Android Development Kit installation on linux, previously, was on windows see previous articles. However much of the basic resources and procedures are shared, so check it out.
Loading Ubuntu gave some issues,
unable to find a medium containing a live file system During the start up the PC BIOS can read the USB, and begin the boot up, but then the USB is not readable. So the DVD method was tried, using ubuntu-12.04.3-desktop-i386.iso burned on DVD with windows image writer. It's a bit slow, but did load. First, ran ubuntu [rather than install]. Then I can see what USB drive can be read, some could.
Loading ubuntu on the PC Manually setting partition... Only one hiccup here, remember that root and / are used interchangable in unix. Therefore if you get
No root file system found. Please correct this from the partition menu.
In the partition menu identify the partition intended for the OS, select it and change then set mount point equals /
There are other requirements, the partition must be at least 2.9G, of a linux variant like ext4. There will be a warning if no swap space is set up.
Installing ADK
As previously followed the procedures. There are two separate ways to achive this. Install Eclipse first, then plug in the ADT, or use the ADT bundle, which includes eclipse.
Installing JRE
This needs to be done first. www.64bitjungle.com had a good write up of this. First I installed the java runtime environment [jre] 32 bit version. Unpacking the jre-7u45-linux-i586.gs file into a folder on the Desktop called jre1.7.0_45
Next: super user do, copy, recursive, source[~/Desktop/jre1.7.0_45], destination[/opt] ...
sudo cp -r ~/Desktop/jre /opt
Next: super user do, install an alternative binary, from java in bin, to java in above...
sudo update-alternatives --install "/usr/bin/java" "opt/jre1.7.0_45/bin/java"And: super user do, set this alternative to be executed, for java.
sudo update-alternatives --install "/usr/bin/java" "opt/jre1.7.0_45/bin/java"Check this works: java -version
Method 1: Eclipse with ADT plug-in
Installing eclipse first, this is how I did it on windows, see previous article.
Used the 32 bit versions. Unpacked and copied to the /opt/eclipse folder and could run eclipse from there.
Then could build a hello World project and run it, and export it to test.jar and run that, with java test.jar
Then to try android, but found that the download sites for ADT were not working for me
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml, reason: IO Unknown Host dl-ssl.google.com
Starting the SDK manager genetates this if not available, can try http: instead of https:
Also had problems with slow system while running the SDK manager and no SDK yet.
So stopped and tried method 2.
Method 2: ADT Bundle
Instructions on developer.android.com
Installing ADT Bundle. Downloaded it, unpacked, copied to /opt/adt-bundle-linux-x86-20131030, inside found and ran eclipse, but:[2014-01-02 18:23:02 - SDK Manager] [SDK Manager] Error: Error parsing the sdk. [2014-01-02 18:23:02 - SDK Manager] [SDK Manager] Error: Failed to create /opt/adt-bundle-linux-x86-20131030/sdk/add-ons. [2014-01-02 18:23:02 - SDK Manager] [SDK Manager] Error: Unable to parse SDK content.
These are seen in the eclipse console, these indicated no permissions, so set them in /opt/adt-bundle-linux-x86-20131030 recursively.
chmod o+r -R /opt/adt-bundle-linux-x86-20131030Then creating and running Android projects and SDK Manager was OK. See prevoius article about log messages from android device
Postscript
Here are the observations, which may be useful, though not intented to be complete. Use the official documentation and elsewhere for more.