one. compiling android source code
5.1 Initializing environment variables
1 $ source build/envsetup. SH 2 $. Build/envsetup. SH 3 $ lunch Full-eng
5.2 Compiling the Android system
1 make –jn
Where the n parameter represents the thread parameters of your computer, the larger the number, the faster the compilation, but depends on where your computer is supported.
I'm using $ make–j8.
After a few days of compiling, finally saw the dawn of victory: System.img successfully generated!
5.3 Running the emulator
After compiling successfully, run Emulator: $ emulator
If the command cannot be found, re-enter:
1 $ source build/envsetup. SH 2 $. Build/envsetup. SH 3 $ lunch Full-eng
Run again:$ emulator
The following: "Android introduction and source code compilation--Common compilation errors"
Android Introduction and source code compilation--compiling Android source code