Skip to content

Instantly share code, notes, and snippets.

@thefron
Last active October 19, 2017 09:22
Show Gist options
  • Save thefron/9a54c986969d1accdf7e to your computer and use it in GitHub Desktop.
Save thefron/9a54c986969d1accdf7e to your computer and use it in GitHub Desktop.
android build

Build Howto

Install Ubuntu 14.04.3 LTS

You know how.

$ sudo apt-get update
$ sudo apt-get install build-essential module-assistant

장치 - 게스트 확장 CD 이미지 삽입

재시작($ sudo shutdown -r now)

Establishing Android Build Environment

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

Install Oracle Java

http://noldit.tistory.com/entry/SunOracle-JDK-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EB%B0%8F-%EC%84%A4%EC%B9%98

Build Android

$ . build/envsetup.sh
$ lunch 1
$ make -j4
... wait
$ emulator
... ensure the build works

Build Error#1

Error 2
Can't locate Switch.pm in @INC (you may need to install the Switch module)

-> sudo apt-get install libswitch-perl

Build Complete

23:50 ~ 00:46

@meungochoo
Copy link

.repo 폴더 안에 local_manifests 폴더가 없으면 만들고 local_manifest.xml을 만들면 된다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment