记录一下,详细说明可以从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
阅读(2849) | 评论(0) | 转发(1) |