12
votes

Intellij Idea 12 et Homebrew Android SDK

J'ai installé le dernier sdk Android via Homebrew:

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


1 commentaires

Maintenant, j'ai trouvé qu'il n'y a pas de formule android , mais caskroom / android-sdk , je l'installe, mais quand je lie à Intellij Idea, il ne peut pas fonctionner


3 Réponses :


23
votes
  1. Appuyez sur cmd shift dans la boîte de dialogue de sélection de fichier sur Affiche les fichiers cachés . < / p>

  2. naviguer vers /usr/local/cellar/android-sdk/r21.1 répertoire.

    Si le raccourci clavier ne fonctionne pas (par exemple, un autre plugin utilise ce raccourci), une autre alternative consiste à ajouter / usr à vos favoris de recherche et à naviguer à partir de là.


1 commentaires

Excellente solution! Cmd-shift-. est utilisé par un autre plugin sur mon système. Existe-t-il un moyen d'afficher des fichiers cachés autres que cette poignée de main au clavier secret (à l'aide d'un élément UI, par exemple)?



1
votes

Je l'ai fait avant d'avoir trouvé la réponse de CrazyCoder, en reliant Soft liant l'Android-SDK:

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

Je recommande la méthode de CrazyCoder.


0 commentaires

1
votes

ajout à d'autres réponses

Par défaut Brew CASK Installez Android-SDK Installe uniquement des outils . Et intelligy par une raison quelconque ne le reconnaît pas comme Android SDK à la maison. Pour le rendre reconnaissable, il devrait y avoir au moins une plate-forme. Donc, une plate-forme doit être installée avec sdkmanager : xxx


0 commentaires