How to configure the Android development environment and ubuntuandroid environment in Ubuntu Linux

Source: Internet
Author: User

How to configure the Android development environment and ubuntuandroid environment in Ubuntu Linux

Download and install the Android development environment of Windows 7. How does one install the Android development environment in Windows 7? How does one configure the Android development environment in Linux? This article demonstrates how to configure the Android development environment in Ubuntu 11.04 using Eclipse, Android SDK, and PhoneGap.

Follow these steps to configure the Android development environment in Ubuntu linux:

1. Install the required software packages for Eclipse and Android SDK/PhoneGap:

Open the terminal and enter the following command to complete the process described in the question:

Sudo apt-get install openjdk-6-jdk eclipse ruby rubygems ruby-dev libnokogiri-ruby git ant libxml2 libxml2-dev libxslt1-dev

If it is 64-bit, you also need to install the following two software packages:

Sudo apt-get install lib32stdc + + 6 ia32-libs

2. Install the Android SDK

Open the web browser and enter the address http://developer.android.com/sdk/index.html to download the Android SDK version of the required platform (Win, Mac, Linux. Choose Linux (i386) (applicable to both 32-bit and 64-bit platforms ). Alternatively, run the following command to download and decompress the package:

Cd ~ Wget http://dl.google.com/android/android-sdk_r11-linux_x86.tgz tar xvfz android-sdk_r11-linux_x86.tgz

With the above command, we can get the file directory android-sdk-linux_x86, now we want to add the $ HOME/android-sdk-linux_x86/tools directory and the $ HOME/android-sdk-linux_x86/platform-tools directory to the 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 make the above changes take effect:

Export

PATH = "$ HOME/android-sdk-linux_x86/tools: $ HOME/android-sdk-linux_x86/platform-tools: $ PATH"

Now, start 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 software packages in the "Android Repository" group, and click "Install the selected software package. Next, select "accept" to continue the installation.

If "ADB needs to be restarted" is prompted, select "Yes" to restart ADB.

After the download is complete, click "close" to close the dialog box.

3. Port the Android SDK to Eclipse

If you use Eclipse to create an Android application, rather than the command line, we need to port the Android SDK to Eclipse.

First, start Eclipse from "Applications> Programming> Eclipse.

In this way, the Android development environment of Ubuntu Linux is installed and configured. You can start Android Application Development in Linux.


Teach linux/ubuntu124 environment to build a cocos2d-x android Development Environment androidlinux under the development to download the linux eclipse line ah said cocos2d-x I understand
I have set up an Android development environment in Linux Ubuntu, but cannot update the SDK? Automatic Updates are manually updated using software management software.
Remind me that the android version is updated too fast. We suggest you stick to a stable version for development. You need a new version.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.