[Android]Build Android OS環境設置
參照:(http://source.android.com/source/initializing.html)
如官方網站所言,系統要具備:
1.Python 2.5 — 2.7
2.GNU Make 3.81 — 3.82
3.JDK 6
4.Git 1.7
- 安裝 JAVA jdk6
1.$sudo apt-get install python-software-properties
2.$sudo add-apt-repository ppa:ferramroberto/java
(Ubuntu 11之後請執行:$sudo add-apt-repository “deb http://ppa.launchpad.net/ferramroberto/java/ubuntu oneiric main”)
3.$sudo apt-get update
4.$sudo apt-get install sun-java6-jdk
安裝過程中需要同意License才能繼續安裝
安裝完重新開機可執行
$java -version
檢查JAVA版號
- Install the others
$ 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 xsltproc
- Install Repo
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
- Install Adb tool
1.下載Android SDK
2.
$cd ~/android-sdk-linux/tools
$./android sdk
3.選擇安裝 “Android SDK Platform-tools” 點選 “Install the package”開始安裝
4.測試是否能正常運作
$cd ~/android-sdk-linux/platform-tools
$adb devices
5.如果正常的話會顯示類似:
List of devices attached
0123456789ABCDEF device
================================
分享與讚美,是我們繼續打拼的原動力.
若文章對您有幫助,望請不吝按讚或分享.
或者對影片有興趣可以訂閱頻道接收通知
================================
YouTube 頻道
FB 粉絲專頁
================================