If you are having a MAC which is loaded on the latest Mavericks OS, then you can now setup the Build environment easily. While this procedure won’t help you make the custom ROMs or the kernels, it will help you to create your Android development journey. So, with the help of some simple instructions you can setup this in your MAC. This build environment allows the developer to download the Android source code (ASC), which can then be used to create custom ROMs, themes, apps and almost everything else w.r.t the OS. Some of the components of the build environment includes Java Development Kit (JDK), theAndroid SDK & the Android source. Procedure to Setup Android Build Environment on OS X 10.9 Mavericks: Step 1: Install X Code 5 in your MAC, preferably the latest version as it fixes most of the bugs. Note: XCode is around 4GB and can be downloaded from the AppStore. Once downloaded, it will kick start the installation process, where it will download more software and install XCode on your system. Depending on your hardware, and your internet speeds, this could take a long time. Step 2: Now, install the Java JDK in your MAC. Just open the terminal and type in the java. If this is not installed, then you will be prompted to install the same. Up next, to build Android you will be needing he JDK 6. Just click on the below mentioned link to download the .dmg file and install the same. Step 3: Now, after installing X Code, you need to install the Android SDK from android.com wensite. Please note that since the full SDK is not required, you can download the ADT Bundle along with the SDK tools packages are mentioned below; AndroidSDK for Mac OS X – SDK Tools Only download As soon as the SDK is installed successfully, you need to follow the below steps to install in your system with the help of terminal.
nano -w ~/Users/USERNAME/.bash_profile This will open the bash.profile file from your home directory in the Nano Editor and enter the below mentioned commands in the terminal window; export PATH=${PATH}:~/android/android-sdk/tools export PATH=${PATH}:~/android/android-sdk/platform-tools export PATH=${PATH}:~/bin PATH=”$HOME/android/android-sdk/tools:$HOME/android/android-sdk/platform-tools:$PATH” Bashprofile will point to the ~/android/android-sdk. You may choose to modify it so that it reflects exactly.
Step 4.
ruby -e “$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)”
touch ~/.bash_profile && echo “PATH=/usr/local/bin:/usr/local/sbin:$PATH:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools” >> ~/.bash_profile export BUILD_MAC_SDK_EXPERIMENTAL=1
brew update brew upgrade brew doctor
brew install git coreutils findutils gnu-sed gnupg pngcrush repo python ln -s /usr/local/bin/gfind /usr/local/bin/find && ln -s /usr/local/bin/gsed /u Step 5:
brew install cpanm sudo cpanm Switch –force Step 6:
Enter the following into the Terminal. hdiutil create -type SPARSE -fs “Case-sensitive Journaled HFS+” -size 60g -volname “android” -attach ~/Desktop/Android
cd /Volumes/android and now you will be able to do something like, say, initialize the OmniROM Source: cd /Volumes/android mkdir omnirom cd omnirom repo init -u https://github.com/omnirom/android.git -b android-4.3 repo sync Do let us know in the comments section or on out Facebook / Google+ Page if you face any issues. |
|