12

Homebrew から最新の Android SDK をインストールしました。

brew install android
brew info android
android-sdk: stable r21.1
http://developer.android.com/index.html
/usr/local/Cellar/android-sdk/r21.1 (9032 files, 619M) *
  Built from source
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/r21.1

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/opt/android-sdk

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

「Android」ツールから最新の SDK をインストールしましたが、IntelliJ IDEA 12 で新しいプロジェクト/Android アプリケーションを作成するときに、Android SDK へのパス (/usr/local/Cellar/ 内) がなく、コピーできません。 /past 形式のパスを使用すると、IntelliJ が Finder を開いているため、/usr/local/Cellar に到達できません。

IntelliJ IDEA に自作の Android SDK を追加するためのクリーンでエレガントな方法を探しています

4

3 に答える 3

24
  1. CmdShift.ファイル選択ダイアログで を押して、隠しファイルを表示します

  2. ディレクトリに移動し/usr/local/Cellar/android-sdk/r21.1ます。

キーボード ショートカットが機能しない場合 (別のプラグインがそのショートカットを使用している場合など)、/usrファインダーのお気に入りに追加してそこから移動するという別の方法があります。

于 2013-05-10T15:40:41.970 に答える
1

Android-sdkをソフトリンクすることで、CrazyCoderの答えを見つける前にこれを行いました:

ln -s /usr/local/Cellar/android-sdk/r21.1 /opt/android-sdk

CrazyCoder の方法をお勧めします。

于 2013-08-11T11:18:02.640 に答える