Notes on compiling android source code

Precautions:

1. You must use jdk6. I used jdk8 at the beginning (the pursuit of the most advanced), which led to re-searching for jdk6 on the Internet.

2. You must use ubuntu10.04 64-bit version. I used ubuntu 12.10 32-bit compilation error at the beginning, and then switched to ubuntu12.10 64-bit gcc version. The compilation error is too high. Finally, I read the book honestly, the original book emphasized It is ubuntu 10.04 64-bit version, tears run. . . . .

3. Don't use git to download the source code on the Internet. Damn, more than ten G, with the speed of the school, you can't finish downloading it for a few days and nights. The result is that the same 1000M file is downloaded, broken, re-downloaded, broken again, and re-downloaded, until after trying several times, and finally there is no way, directly download the version that others have downloaded with Thunder, this time That's it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326490590&siteId=291194637