setup Android development
$ brew info android
android-sdk: stable r20.0.3
http://developer.android.com/index.html
Not installed
https://github.com/mxcl/homebrew/commits/master/Library/Formula/android-sdk.rb
==> Caveats
Now run the `android' tool to install the actual SDK stuff.
The Android-SDK location for IDEs such as Eclipse, IntelliJ etc is:
/usr/local/Cellar/android-sdk/r20.0.3
You will have to install the platform-tools and docs EVERY time this formula
updates. If you want to try and fix this then see the comment in this formula.
You may need to add the following to your .bashrc:
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/r20.0.3
$ brew install android
==> Downloading http://dl.google.com/android/android-sdk_r20.0.3-macosx.zip
######################################################################## 100.0%
==> Caveats
Now run the `android' tool to install the actual SDK stuff.
The Android-SDK location for IDEs such as Eclipse, IntelliJ etc is:
/usr/local/Cellar/android-sdk/r20.0.3
You will have to install the platform-tools and docs EVERY time this formula
updates. If you want to try and fix this then see the comment in this formula.
You may need to add the following to your .bashrc:
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/r20.0.3
==> Summary
/usr/local/Cellar/android-sdk/r20.0.3: 442 files, 70M, built in 8 seconds
$ java -version
インストールを促すアラートが表示されるのでインストールする
$ java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
Java - Standard All in One (JRE なし)をダウンロード
"pleiades-e3.7-java_20110924.zip"を解凍
"/pleiades-e3.7-java_20110924/eclipse/dropins/MergeDoc/"配下の"features"と"plugins"の中身をアプリケーションフォルダ内の"eclipse"フォルダの"features"と"plugins"の中にコピー
アプリケーションフォルダ内の"eclipse/Eclipse.app"を右クリックし、「パッケージの内容を表示」を選択
eclipse.iniを編集
"Eclipse.app/Contents/MacOS/eclipse.ini"をエディタで開いて
-javaagent:/Applications/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
を最後に追記
eclipse.iniファイルを変更したので初回はターミナルからcleanコマンドで実行
/Applications/eclipse/eclipse -clean
Homebrewでインストールできるので、2_install_android_sdk_with_Homebrew.mdを参照のこと
.bash_profileに
export PATH=$PATH:/Developer/android-sdk-macosx/tools
を追記
"ヘルプ > 新規ソフトウェアのインストール…"を開き、"追加"を押下して表示されるポップアップ画面のロケーションに
https://dl-ssl.google.com/android/eclipse/
を入力。(名前は適当に"ADT"と入力)