一血柳、Mac默認(rèn)大小寫不敏感, 需要利用磁盤工具創(chuàng)建大小寫敏感的映像
進(jìn)入磁盤工具->文件->新建映像->空白映像(6.0系統(tǒng)編譯需要70GB);
創(chuàng)建,如下圖:
- 點(diǎn)擊‘存儲’完成創(chuàng)建;
二、命令行進(jìn)入創(chuàng)建的映像
- 輸入命令 hdiutil attach ~/android.dmg -mountpoint /Volumes/android 如下圖:
- 進(jìn)入路徑 cd /Volumes/android 如下圖:
三叁鉴、下載源碼,谷歌官網(wǎng):http://source.android.com/source/downloading.html,國內(nèi)鏡像操作:http://www.tuicool.com/articles/6ZF7Nvy
Installing Repo
-
Make sure you have a bin/ directory in your home directory and that it is included in your path:
$ mkdir ~/bin $ PATH=~/bin:$PATH
-
Download the Repo tool and ensure that it is executable:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
Initializing a Repo client
-
Create an empty directory to hold your working files. If you're using MacOS, this has to be on a case-sensitive filesystem. Give it any name you like:
$ mkdir WORKING_DIRECTORY $ cd WORKING_DIRECTORY
-
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.
$ repo init -u https://android.googlesource.com/platform/manifest
To check out a branch other than "master", specify it with -b. For a list of branches, see Source Code Tags and Builds.
$ repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.0_r2
Downloading the Android Source Tree
-
To pull down the Android source tree to your working directory from the repositories as specified in the default manifest, run
$ repo sync