To Install Android Successfully:
Extract the file in downloads itself using the command unzip adt-bundle-linux-x86_64-20130717.zip (Only then the extracted folder will be in your name elseyou need to change the ownership using chown)
Now move the folder to /opt using sudo mv ~/Downloads/adt-bundle-linux-x86_64-20130717 /opt/
Now add the following lines to ~/bashrc using gedit ~./bashrc and enter theselines(to avoid typing for every log in).export PATH=$PATH:/opt/adt-bundle-linux-x86_64-20130717/sdk/toolsexport PATH=$PATH:/opt/adt-bundle-linux-x86_64-20130717/sdk/platform-tools
Now git clonehttp://**firstname.lastname@example.org/stash/scm/~**user**/ce4052_lab3.git
Now type the command “android list targets” in the command line. This shoulddisplay the available targets and skins.
Now add the required device using “android create avd --name nexus7 --targetandroid-17 --skin 720x1280” in the command line. Press enter (no – default) whenprompted for hardware configuration.
Now change the directory to ce4052_lab3.
Open a new terminal and move to ce4052_lab3 (though not required) and type“emulator -avd nexus7” in the command line. This should start your emulator if allyour path variable is configured correctly.
throws libGL errors then you need to install it by giving “sudoapt-get install libgl1-mesa-glx”. Check if it is installed properly, if it throws anydependencies install using “sudo apt-get install libgl1-mesa-dev”.
Now configure bamboo as mentioned in FAQ. Make sure the script (presentin add task option) is inserted between source code and ant in Default job. Andthe compile option in the ant is changed to debug.
Now type the following commands in your first terminal. “android updateproject --path . “ And “ant debug”. Ensure your path is ce4052_lab3 and thecurrent directory “.” is mentioned after - - path.
Type the command “adb install bin/HelloWorld-debug.apk” next. This maythrow an error,
No command 'adb' found, did you mean:Command 'cdb' from package 'tinycdb' (main)Command 'gdb' from package 'gdb' (main)Command 'aub' from package 'aub' (universe)Command 'dab' from package 'bsdgames' (universe)Command 'mdb' from package 'mono-debugger' (universe)Command 'arb' from package 'arb' (multiverse)Command 'tdb' from package 'tads2-dev' (multiverse)Command 'pdb' from package 'python' (main)Command 'jdb' from package 'openjdk-6-jdk' (main)Command 'jdb' from package 'sun-java6-jdk' (multiverse)Command 'ab' from package 'apache2-utils' (main)adb: command not foundTo avoid this error make sure your device is added to “adb devices”
Type “adb devices” and check if your device is recognized. If the device isnot showing, ensure your emulator is running first and do the following.