You know how.
$ sudo apt-get update
$ sudo apt-get install build-essential module-assistant
장치 - 게스트 확장 CD 이미지 삽입
재시작($ sudo shutdown -r now
)
http://source.android.com/source/initializing.html
$ sudo apt-get install openjdk-7-jdk # --> 이거 하지 말고 아래의 oracle java 깔아야하는듯
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
$ . build/envsetup.sh
$ lunch 1
$ make -j4
... wait
$ emulator
... ensure the build works
Error 2
Can't locate Switch.pm in @INC (you may need to install the Switch module)
-> sudo apt-get install libswitch-perl
23:50 ~ 00:46
Can't locate Switch.pm in @inc (you may need to install the Switch module) (@inc contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23. BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23. make: * [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] Error 2
Solve
$sudo apt-get install libswitch-perl