Posted on 2013-04-20 10:57
Qzi 閱讀(303)
評論(0) 編輯 收藏
官方說明:
http://source.android.com/source/initializing.html
環境:
Ubuntu 12.04 64bit
JDK6(installation:
http://www.gaggl.com/2012/04/installing-java6-jdk-on-ubuntu-12-04/)
$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
$ python -V
Python 2.7.3
android 當前 mainfest version: 4.2
按照官方說明從下載到運行emulator,沒有nexus,所以沒做實際機器燒錄。步驟請根據官方說明做,以下只列出過程遇到的問題:
1.repo sync
經常出現斷線,網上有很多參考辦法,我是每次忽略這些錯誤,直到運行完畢退出,我再重新運行:
repo sync -f
知道所有代碼下載完畢(4.2的有16G)
2.每次跑emulator都要cd到代碼目錄先進行環境初始化
source build/envsetup.sh
lunch full-eng
3.emulator出錯
$ emulator
emulator: WARNING: system partition size adjusted to match image file (229 MB > 200 MB)