Download and install the WIN7 System Android development environment How to install the Android development environment in the Win7 system, how to configure the Android development environment in the Linux system? This article will demonstrate how to use Eclipse, Android SDK, and PhoneGap to configure the Android development environment in Ubuntu 11.04 environment.
Here are a few steps to configure the Android development environment on an Ubuntu Linux system:
1. Install the required packages for Eclipse and Android Sdk/phonegap:
Open the terminal and enter the following command to complete the process described in the topic:
sudo apt-get install openjdk-6-jdk eclipse Ruby rubygems ruby-dev libnokogiri-ruby git ant libxml2 libxml2-dev libxslt1-de V
If you have 64 bits, you will need to install the following two packages:
sudo apt-get install lib32stdc++6 ia32-libs
2. Install the Android SDK
Open the Web browser, enter the address http://developer.android.com/sdk/index.html, download the desired platform (Win,mac,linux) for the Android SDK version. We choose Linux (i386) (both 32-bit and 64-bit platforms are available). Alternatively, download and unzip the package using the following command:
CD ~ wget http://dl.google.com/android/android-sdk_r11-linux_x86.tgz tar xvfz android-sdk_r11-linux_x86.tgz
By the above command, we can get the file directory android-sdk-linux_x86, now we want to $home/android-sdk-linux_x86/tools directory and $HOME/android-sdk-linux_x86/ Add the Platform-tools directory to the path PATH variable:
Open ~/.profile File
Gedit ~/.profile
Add the following line to the end of the file:
[...]
Path= "$HOME/android-sdk-linux_x86/tools: $HOME/android-sdk-linux_x86/platform-tools: $PATH"
Then, run the following command to take the above changes into effect:
Export
Path= "$HOME/android-sdk-linux_x86/tools: $HOME/android-sdk-linux_x86/platform-tools: $PATH"
Now, launch the Android SDK:
Android
is shown in the Android SDK:
Next, select "Available packages" on the left, select "Android Repository" in the right column, select all the packages in the "Android Repository" group, and click "Install selected Packages". Next choose "Accept", continue the installation is complete.
If "ADB needs to restart" is prompted, we select "Yes" to restart ADB.
When the download is complete, click "Close" to close the dialog box.
3. Porting Android SDK to eclipse
If you create an Android app with Eclipse, not the command line, then we need to migrate the Android SDK to eclipse.
First, start Eclipse from "Applications > Programming > Eclipse".
In this way, the Android development environment of the Ubuntu Linux system is installed and ready to start Android application development under Linux.