Introduction to Android

Source: Internet
Author: User

Android version

Many Android versions include 0.9, 1.0, 1.5, 1.6, 2.0, and 2.1.

April 15 cupcake Android 1.5
September 15 donut Android 1.6: Linux kernel upgraded to 2.6.29. Support for CDMA, WVGA, and qvga
Supports opencore2 media engine and TTS
October 28 Android 2.0 eclair
Support HTML5
Revamped graphics architecture for improved performance that enables better hardware acceleration.
 
January 2010 Android 2.1 flan
Like features and 2.0, features mainly modify some buckets.

Android code

If you download cupcake, the repo command is as follows:

Repo init-u git: // android.git.kernel.org/platform/manifest.git-B cupcake
Download eclair
Repo init-u git: // android.git.kernel.org/platform/manifest.git-B eclair

-B is the version name later

Android Compilation

HOST: Ubuntu 9.04
Java, javac version 1.6
(1) Source code compilation
The compilation is very simple and can be done directly in the android directory after 5 or 6 hours. However, the android compilation system requires Java, and the javac version is 1.5, in build/CORE/main. MK,
Java and javac versions are detected. If the version is incorrect, the following error occurs:

Checking build Tools versions...
**************************************** ********************
You are attempting to build with the incorrect version
Of Java.
 
Your version is: Java version "1.6.0 _ 0 ".
The correct version is 1.5.
 
Please follow the machine setup instructions
Http://source.android.com/download

Solution 1: Edit build/CORE/Main. mk

Modify

Java_version: = $ (shell Java-Version 2> & 1 | head-N 1 | grep '["] 1/. 5 [/." $]')

Javac_version: = $ (shell javac-Version 2> & 1 | head-N 1 | grep '["] 1/. 5 [/." $]')

Is

Java_version: = $ (shell Java-Version 2> & 1 | head-N 1 | grep '["] 1/. 6 [/." $]')

Javac_version: = $ (shell javac-Version 2> & 1 | head-N 1 | grep '["] 1/. 6 [/." $]')

Disadvantage: problems still occur during SDK compilation.
Make SDK
Docs droiddoc: Out/target/common/docs/services
Javadoc: Error-in the doclet droiddoc class, java. Lang. Reflect. invocationtargetexception has been thrown by the method start.
Com. Sun. Tools. javac. Code. symbol $ completionfailure: the class file of sun. util. Resources. openlistresourcebundle is not found.

Solition 2: Install JDK of version 1.5:

$ Sudo apt-Get install sun-java5-jdk flex
$ Sudo Update-Java-alternatives-s Java-1.5.0-sun

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.