Steps for compiling Android source code in Linux

Source: Internet
Author: User

1. First, you need to go down the source code to a directory.

2. Execute source build/envsetup. Sh in the root directory of the source code.

3. Execute the choosecombo command and select, and 3 from the options that appear.

4. Execute the make-J8 command (J indicates multithreading, and the 8-core code is compiled on the 8-core server)

The above three steps are used to compile the android source file. This process may take some time.

5. Make-J8 SDK (this command is used to compile the SDK) This process may take some time.

In this step, the android source code is compiled. Then we need to test the result of a compilation, after the compilation is complete, in the source directory will form an out file, in the/out/host/linux-x86 directory, we can find the compiled content. Then we took out the out/host/linux-x86/SDK/android-sdk_eng.wangxiaoyu_linux-x86/platforms directory, put it under the platforms directory of the SDK we use, find the corresponding version, you can overwrite the previous items. (For example, We compile the Android-10 SDK, then copy the out/host/linux-x86/SDK/android-sdk_eng.wangxiaoyu_linux-x86/platforms directory to our local D: \ Program
Files \ Android-SDK-Windows \ platforms \ Android-10), restart the simulator, and view the result.

Note: QQ technology exchange group: add one if you are interested in 108614806.

 

1. First, you need to go down the source code to a directory.

2. Execute source build/envsetup. Sh in the root directory of the source code.

3. Execute the choosecombo command and select, and 3 from the options that appear.

4. Execute the make-J8 command (J indicates multithreading, and the 8-core code is compiled on the 8-core server)

The above three steps are used to compile the android source file. This process may take some time.

5. Make-J8 SDK (this command is used to compile the SDK) This process may take some time.

In this step, the android source code is compiled. Then we need to test the result of a compilation, after the compilation is complete, in the source directory will form an out file, in the/out/host/linux-x86 directory, we can find the compiled content. Then we took out the out/host/linux-x86/SDK/android-sdk_eng.wangxiaoyu_linux-x86/platforms directory, put it under the platforms directory of the SDK we use, find the corresponding version, you can overwrite the previous items. (For example, We compile the Android-10 SDK, then copy the out/host/linux-x86/SDK/android-sdk_eng.wangxiaoyu_linux-x86/platforms directory to our local D: \ Program
Files \ Android-SDK-Windows \ platforms \ Android-10), restart the simulator, and view the result.

Note: QQ technology exchange group: add one if you are interested in 108614806.

 

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.