在mac上build Android需要一些"折騰",記錄一下收集來的資訊以及個人試驗的結果。 以 google docs 為準: Test environment Mac OS 10.8 Xcode 4.4 Homebrew 0.9.2 Android 4.1.1_r3 Set build environment create case-sensitive build environment 原因: default的OS X是 case-insensitive,Android會不給compile: http://source.android.com/source/initializing.html In a default installation, OS X runs on a case-preserving but case-insensitive filesystem. This type of filesystem is not supported by git and will cause some git commands (such as "git status") to behave abnormally. Because of this, we recommend that you always work with the AOSP source files on a case-sensitive filesystem. This can be done fairly easily using a disk image, discussed below. 解法: 用Disk Utility建立一個25GB的"case sensitive, journaled" DMG disk image 或是 You can also create it from a shell with the following command: hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dm...
留言
張貼留言