#Installation Guide for Android SDK / ADT Bundle on Ubuntu
To setup the Android SDK on your ubuntu linux platform,
-
First, you will have to check your system architecture. To do that,
- Click on the settings icon at the top right corner of your taskbar
- Click on system settings
- On the system settings windo, click on details
- You will see the system architecture (wether 32 or 64 bit) written beside OS type
-
Then you will need to setup java platform on your system since eclipse requires it. To do that,
- Open your terminal (Ctrl + Alt + Del)
- then type
sudo apt-get update
to update your repositories - type
sudo apt-get install openjdk-7-jdk
to install the open jdk on your system
-
To download the Android ADT Bundle,
- Click this link to go to the download page
- Click on
Download Eclipse ADT with the Android SDK for Linux
button - Agree to the license
- Select your system architecture (you can find your os type at step 1)
- Finally click on download
-
Setting up ADT
-
Extract your zipped ADT anywhere on your system, (eg; ~/Desktop)
-
Acessing android anywhere on your terminal
-
Edit your .bashrc file by typing
sudo gedit ~\.bashrc
on your terminal -
Scroll to the bottom of the page and type the following,
export ANDROID_HOME = /PATH_TO_ANDROID/sdk
export PATH = $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
NB: Replace
PATH_TO_ANDROID
with where you extracted your adtbundle. -
-
You can now access your android sdk and adb command tools by typing
android
andadb
respectively.
-
-
Accessing eclipse
- Open your extracted folder and then open the eclipse folder
- Double click on eclipse to run it
- If it doesn't open the eclipse IDE, you will have to set it as executable and you can do that by,
- Opening the eclipse folder in your terminal
- type
sudo chmod +x eclipse
- then you can double click to open your file
#Setting up Google App Engine on Ubuntu Linux
-
Python
- Python 2.7 is already installed on most linux distributions.
- Open the terminal and type
python
to verify
-
Google App Engine SDK
- Navigate to App Engine SDK and download the zipped file
- Extract the file to any location, eg, ~/Desktop
- Now edit your bashrc file ,
sudo gedit ~/.bashrc
and set the path by typing
export PATH=$PATH:PATH_TO_FOLDER
where
PATH_TO_FOLDER
will be where you extracted the appengine file, eg:/opt/google_app_engine
-
Creating a Hello World with Appengine
-
Create a new folder called apps and create a subfolder called appenginetry
-
Create a file and name it app.yaml and put in this content
application: enginetry
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
script: index.py
-
Create an index.py file and put in
` print "hello world" `
-
Now navigate to your apps folder and type
dev_appserver.py appenginetry
-
Thanks chief