Android Deep Explore Chapter Two

Source: Internet
Author: User

This chapter focuses on the configuration of the Android development environment in the Ubuntu Linux environment. This is the procedure that I found on the Internet on the configuration process contact book to complete

First, JDK

: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Current Latest Version: Jdk-8-linux-x64.tar.gz

After extracting using "TAR-ZXVF", assume the "/home/szyzln/jdk1.7.0_51" is extracted from the home directory.

1, sudo gedit/etc/profile

Export java_home=/home/szyzln/jdk1.8.0

Export JRE_HOME=/HOME/SZYZLN/JDK1.8.0/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin

2, sudo gedit/etc/environment

Export java_home=/home/szyzln/jdk1.8.0

Export JRE_HOME=/HOME/SZYZLNJDK1.8.0/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin

Second, the Android SDK

1,: http://developer.android.com/sdk/index.html

2, after decompression casually renamed as "Adteclipse", including "Eclipse", "SDK" two directories.

Run directly inside the "Adteclipse/eclipse/eclipse" can.

3. Eclipse is the official Google recommended tool. There is no need to install the standalone version on the website. The collaboration with the SDK in Eclipse is "SDK location" via the menu bar "Windows-prefercens-android".

5. Create AVD Simulator

Menu "Windows------Android Virtual devier Manager". Click OK after configuration and click "Start" to run the simulator. If you click OK to not generate the emulator list, or do not run the emulator, try to create it using the command.

Command: #android list targets

#android Create Avd–n avdname–t 1

6. Create a sample project

Third, install the Android NDK development environment

1. Download Android NDK

2. Installing the CDT

3. Command-line compiling Android NDK program

4. Examples of importing Android NDK

5. Configure the Android NDK integrated development environment

Iv. Installation of cross-compilation environment

Android Deep Explore Chapter Two

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.