How to configure the compiling environment of Android 14.04 kitkat on Ubuntu 4.4 x64

Source: Internet
Author: User

The compiling environment for Ubuntu 14.04 x64 to configure Android 4.4 kitkat is not much different from that for Ubuntu 12.04-13.10 and jellybean. By the way, we will record the following:

Configure the Android SDK development environment in Ubuntu 14.04

Build the Android development environment under 64-bit Ubuntu 11.10 (JDK + Eclipse + ADT + Android SDK details)

Install Android SDK on Ubuntu 12.10x64

1. Configure dependency tools

Sudo apt-get install git-core gnupg flex bison gperf build-essential
Zip curl libc6-dev libncurses5-dev: i386 x11proto-core-dev
Libx11-dev: i386 Co., libreadline6-dev: i386 libgl1-mesa-dev: i386
G ++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown
Libxml2-utils xsltproc zlib1g-dev: i386 libxext-dev: i386

(Note that if Mokee4.4.2 is compiled, a png xxxx tool may be missing. during compilation, the system prompts that the tool is missing. Follow the prompts in sudo apt-get install pngxxx)

2. Configure java jdk. Compile and use jdk 6u45 in kitkat 4.4 (the official sun version is not openjdk) or an updated version (I have not tested jdk 7 and it is said that it is OK)
 
Can download to the sun official website, address: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

You can also go to my shared download: http://pan.baidu.com/s/1nt2Wd9f

Download and put the jdk-6u45-linux-x64.bin in a directory and then add permissions to the chmod 777 jdk-6u45-linux-x64.bin
 
Then./The jdk-6u45-linux-x64.bin runs, and then configure the environment variable after completion:
 
Sudo gedit/etc/profile
 

Add at the end of the file:
 

JAVA_HOME =/home/syhost/tools/jdk1.6.0 _ 45
Export JRE_HOME = $ JAVA_HOME/jre
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH
Export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH

Note that the path behind JAVA_HOME should be replaced with the one on your computer, that is, the path of the folder that came out after running the jdk-6u45-linux-x64.bin above

Restart your computer or run source/etc/profile.
 
Check whether the configuration is successful.
 
Run java-version. If the following content is displayed, the configuration is successful:

Java version "1.6.0 _ 45"
Java (TM) SE Runtime Environment (build 1.6.0 _ 45-b06)
Java HotSpot (TM) 64-Bit Server VM (build pipeline 45-b01, mixed mode)

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.