Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Android Installation

Android Installation

Ratings: (0)|Views: 12|Likes:
Published by Saravana Sams

More info:

Published by: Saravana Sams on Sep 01, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/22/2014

pdf

text

original

 
To Install Android Successfully:
1.
Download the bundle fromhttp://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130717.zip (Mine is a 64-bit – For respective OS pls download therelevant file)
2.
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)
3.
Now move the folder to /opt using sudo mv ~/Downloads/adt-bundle-linux-x86_64-20130717 /opt/ 
4.
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
5.
Now git clonehttp://**user**@yarvard.sce.ntu.edu.sg/stash/scm/~**user**/ce4052_lab3.git
6.
Now type the command “android list targets” in the command line. This shoulddisplay the available targets and skins.
7.
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.
8.
Now change the directory to ce4052_lab3.
9.
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.
10.
If 
emulator 
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”.
11.
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.
12.
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.
13.
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”
14.
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.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->