Chinaunix首页 | 论坛 | 博客
  • 博客访问: 830301
  • 博文数量: 290
  • 博客积分: 511
  • 博客等级: 下士
  • 技术积分: 1590
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-29 13:14
文章分类

全部博文(290)

文章存档

2018年(28)

2017年(19)

2016年(8)

2015年(1)

2014年(14)

2013年(12)

2012年(22)

2011年(186)

分类:

2011-12-17 13:45:20

原文地址:Android源代码下载 作者:hawkorchid

记录一下,详细说明可以从Android官网上了解~
Android源码下载【官方文档】:


步骤
1. Installing the JDK
sudo add-apt-repository "deb lucid partner"
sudo add-apt-repository "deb-src ubuntu lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk:


2. Installing required packages
sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils


3. Next: Download the source
$ mkdir ~/bin
$ PATH=~/bin:$PATH

$ curl > ~/bin/repo
$ chmod a+x ~/bin/repo


repo init -u -b android-2.3.7_r1
错误:
Traceback (most recent call last):
  File "/root/bin/repo", line 685, in
    main(sys.argv[1:])
  File "/root/bin/repo", line 652, in main
    _Init(args)
  File "/root/bin/repo", line 184, in _Init
    _CheckGitVersion()
  File "/root/bin/repo", line 209, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
安装
apt-get install git-core

repo sync
阅读(731) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~