您的位置:首页 > 移动开发 > Android开发

Trouble Shoot When Download Android Souce Code from AOSP

2014-04-24 08:46 453 查看
1. Android Source Environment

   Recently I want use Android Source Code to build my own ROM. I use the Ubuntu from official site, i.e. Ubuntu 12.04.4, and found too many errors. For example, a package from apt-get requires a dependency which is a older version. I resolve it by apt-get
install libc=1.0.1. But I realize there must be something wrong because there are too many errors. Finally I found that Ubuntu 12.04.4 is different from 12.04 in kernel, so many thing changed.

2. Install Ubuntu 12.04

   To install Ubuntu 12.04 in my bake drive, i use a USB stick. After burn the ISO image many times, the USB stick just don't boot. First I think it's the USB port reason because i have met them before, which still don't work. Finally I found the reason
is that both UltraISO and Universal USB Install burn a unbootable USB stick. Then i use win32diskimager-v0.9-binary to burn, and work DONE.

3. Downloading AOSP

   Takes great time to download because the network always off. Then I google and found that use a proxy can solve the problem. So I use my gae proxy, and all pass.

4.Downloading AOSP continues

   Another thing is that the Down load would stuck at 99% every time. I check the doc and add this:

$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync -j1
   Then delete the broken projects from .repo/projects/. And the download is completed now.

Android 4.4.2, In .repo, 77,787 items, totalling 15.4 GB
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  AOSP