The establishment of Android development environment in Linux environment, linuxandroid

Source: Internet
Author: User
Tags android sdk manager

The establishment of Android development environment in Linux environment, linuxandroid

This article describes how to build an Android development environment in Ubuntu. The IDE is Eclipse (similar to Android Studio, and you can skip the steps of configuring the SDK and installing the adt plug-in ).

1. Install JDK

(1) JDK8: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

(2) Select the Linux version for download. If the tar package is downloaded, run the # tar xvzf xxx.tar.gz command to decompress the package. If the rpm package is downloaded, run the rpm-ivh xxx command. rpm for installation.

(3) configure the environment variable: Execute the command vi/etc/profile to edit the profile configuration file and add the following lines:

Export JAVA_HOME = "jdk path"
Export PATH = $ JAVA_HOME/bin: $ PATH
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar

2. Install the SDK

(1) Ubuntu x64 system requires 32-bit library files for 32-bit programs

Sudo apt-get install-y libc6-i386 lib32stdc ++ 6 lib32gcclib32ncurses5 lib32z1

(2) SDK download official website http://developer.android.com/sdk/index.html, domestic image http://gmirror.org/#android-sdk-tools-only

# Tar xvzf xxx.tar.gz

(3) $ sudo vim/etc/profile

Add the following content
Export PATH =/usr/local/android-sdk-linux/tools:/usr/local/android-sdk-linux/platform-tools: $ PATH

3. Install eclipse

Download eclipse for linux and install http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/neonr

4. Install the adt plug-in

(1) Start Eclipse and select Help> Install New Software
(2) Click "Add" and enter "ADT" in "Name". In "Location", enter "http://dl-ssl.google.com/android/eclipse/#, and" adt# "corresponds to" sdk.

(3) configure the ADT plug-in

Select Window> Preferences, select Android in the list on the left, and specify the SDK path.

(4) add platforms and other components

Select Window> Android SDK Manager, select a Platform, and install

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.