Developing first Android app on Windows 8 : Step 1 – Installing Android Developer Tools

Notes on developing first android app on a desktop PC running Windows 8.  Using a Linux VM on there rather than native Windows.

Get free Ubuntu Linux distribution .iso file from (at the time of writing it is v13.10, 883MB) http://www.ubuntu.com/download/desktop/questions?distro=desktop&bits=64&release=latest

Get free VMware Player for Windows (at the time of writing it is v6.0.1 build 1379776, 93MB) https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/6_0

Install VMware Player.
01vmware-player-install
02vmware-player-install
03vmware-player-install

Run VMware Player, create a new Ubuntu VM, pointing it at the .iso downloaded earlier.  Take all the default options.
04create-vm
05create-vm

06create-vm

07create-vm

08create-vm

09create-vm

10create-vm

Launch the Ubuntu VM, which then starts the installation of Ubuntu itself.

Once installed, logon and run command startx.

Get a terminal by pressing Control + Alt + t.

steve@ubuntu:~$ cat /etc/lsb-release
 DISTRIB_ID=Ubuntu
 DISTRIB_RELEASE=13.10
 DISTRIB_CODENAME=saucy
 DISTRIB_DESCRIPTION="Ubuntu 13.10"
 steve@ubuntu:~$ uname -a
 Linux ubuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
 steve@ubuntu:~$

Update package info.

steve@ubuntu:~$ sudo apt-get update

Download the Android ADT (Eclipse IDE and Android SDK tools).  Download from site http://developer.android.com/sdk/index.html

steve@ubuntu:~$ wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip
 --2014-01-12 12:30:39-- http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip
 Resolving dl.google.com (dl.google.com)... 173.194.34.97, 173.194.34.104, 173.194.34.98, ...
 Connecting to dl.google.com (dl.google.com)|173.194.34.97|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 497171697 (474M) [application/zip]
 Saving to: ‘adt-bundle-linux-x86_64-20131030.zip’
[========================================================================] 497,171,697 12.9MB/s in 37s
2014-01-12 12:31:16 (12.9 MB/s) - ‘adt-bundle-linux-x86_64-20131030.zip’ saved [497171697/497171697]
steve@ubuntu:~$

Unzip it

steve@ubuntu:~$ unzip -q adt-bundle-linux-x86_64-20131030.zip
steve@ubuntu:~$

If we run eclipse now, we’ll get this error, due to 32-bit libraries not being there.
23eclipsefail

So install the libraries manually, to avoid the error altogether:

steve@ubuntu:~$ sudo apt-get install libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 libglu1-mesa:i386
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 [snip]
 Setting up libpangox-1.0-0:i386 (0.0.2-4) ...
 Setting up libtxc-dxtn-s2tc0:i386 (0~git20121227-1) ...
 update-alternatives: using /usr/lib/i386-linux-gnu/libtxc_dxtn_s2tc.so.0 to provide /usr/lib/i386-linux-gnu/libtxc_dxtn.so (libtxc-dxtn-i386-linux-gnu) in auto mode
 Processing triggers for libc-bin ...
 steve@ubuntu:~$

Launch eclipse

steve@ubuntu:~$ cd adt-bundle-linux-x86_64-20131030/eclipse
steve@ubuntu:~/adt-bundle-linux-x86_64-20131030/eclipse$ ./eclipse

22eclipse
24eclipsok

Next step : Developing first Android app on Windows 8 : Step 2 – Enable developer mode on physical Android device

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s