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.