Android - Android Studio

Introducción

Instala Android Studio.

Puedes utilitzar JetBrains Toolbox.

Al arrancar por primera no encontrará ninguna Android SDK.

Continua (Next) el SDK se instalará en C:\Users\USERNAME\AppData\Local\Android\Sdk, donde USERNAME es el usuario de tu PC.

To install the Android SDK on macOS, the most reliable path is via Android Studio (it bundles the SDK Manager and keeps everything updated). Here are the practical options.

To install the Android SDK on macOS, the most reliable path is via Android Studio (it bundles the SDK Manager and keeps everything updated). Here are the practical options.

  1. Install Android Studio
    • Download from the official Android Developer site (Android Studio for Mac).
  2. Run Android Studio → Setup Wizard
    • When prompted, select Standard (unless you need a custom location).
    • The wizard installs:
      • Android SDK
      • Platform Tools (adb, fastboot)
      • Emulator + system images (optional)
  3. Verify / manage SDK components
    • Android Studio → Settings/PreferencesAppearance & BehaviorSystem SettingsAndroid SDK
    • From there you can install:
      • SDK Platforms (Android API levels)
      • SDK Tools (Platform-tools, Build-tools, Command-line Tools, Emulator)

Where it ends up on macOS

Typically:

  • ~/Library/Android/sdk

Add the SDK tools to your shell PATH (so adb works in Terminal)

If you use zsh (default on modern macOS), add this to ~/.zshrc:

Terminal window
export ANDROID_SDK_ROOT="$HOME/Library/Android/sdk"
export PATH="$PATH:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/emulator"

Then reload your shell:

Terminal window
source ~/.zshrc

Test:

Terminal window
adb --version
sdkmanager --version

Option B: Install SDK Command-line Tools only (no Android Studio)

Use this if you don’t want the full IDE.

  1. Download Command line tools (macOS) from the Android Developer “SDK Tools” page.
  2. Unzip and place it like this (important folder layout):
Terminal window
mkdir -p "$HOME/Library/Android/sdk/cmdline-tools/latest"
mv <unzipped-folder>/* "$HOME/Library/Android/sdk/cmdline-tools/latest/"
  1. Add the same ANDROID_SDK_ROOT + PATH entries as above.
  2. Install components:
Terminal window
sdkmanager --licenses
sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0"

Common macOS gotchas

  • Java requirement (for command-line builds/tools): Make sure you have a JDK installed (you mentioned Java is in your stack, so you’re likely fine).
  • Apple Silicon (ARM64): Android Studio and the Emulator work well; choose ARM64 system images for best performance.
  • If adb isn’t found, it’s almost always a PATH issue—double-check platform-tools is in your PATH.