IntelliJ IDEA 12和Homebrew Android SDK

sma*_*ace 11 homebrew android path intellij-idea

我已经通过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
Run Code Online (Sandbox Code Playgroud)

我已经从'android'工具安装了最新的SDK,但是当在IntelliJ IDEA 12中创建一个新的Project/Android应用程序时,我无法获得android SDK的路径(在/ usr/local/Cellar /中),我无法复制/通过表单中的路径,IntelliJ打开Finder,无法访问/ usr/local/Cellar.

我正在寻找一种干净而优雅的方式来在IntelliJ IDEA中添加自制软件的android sdk

Cra*_*der 22

  1. CmdShift.文件选择器对话框以显示隐藏文件.

  2. 导航到/usr/local/Cellar/android-sdk/r21.1目录.

如果键盘快捷键不起作用(例如,另一个插件正在使用该快捷键),另一种选择是添加/usr到您的查找器收藏夹并从那里导航.