Finding Android SDK on Mac and adding to PATH

add android sdk to path mac
android sdk path mac
please provide the path to the android sdk
sdkmanager command not found
android sdk path not specified
android sdk location
android studio sdk path
android sdk manager gui

I have installed Android Studio on my MacBook Air (OS Version 10.11 El Capitan) and have successfully written a small "hello, world" app and installed on device (Nexus 7) and ran on AVD. All I want to do now is be able to build the app and install it on device from the command line as opposed to Android Studio. I'm following the directions here:

http://developer.android.com/training/basics/firstapp/running-app.html

and the relevant line is:

Make sure the Android SDK platform-tools/ directory is included in your PATH environment variable, then execute:

The problem is I can't find the Android SDK on my machine! I assume it's there because otherwise the program wouldn't compile and run through Android Studio? Perhaps that's a bad assumption? I'm new to Macs (I'm used to Windows) so I don't know the best way to search for the Android SDK. So my questions:

  1. How do I find Android SDK on my machine? Or prove to myself it's not there?
  2. If it's not there how do I install it?
  3. How do I change PATH to include Android SDK?

Finding Android SDK on Mac and adding to , To determine where the Android SDK folder on your computer is located open Android Studio. Press the Android Studio menu in the toolbar and  Find the Android SDK location Android Studio > Preferences > Appearance & Behaviour > System Settings > Android SDK > Android SDK Location Create a .bash_profile file for your environment variables. Open the Terminal app; Go to your home directory via cd ~ Create the file with touch .bash_profile; Add the PATH variable to your .bash_profile

If you don't want to open Android Studio just to modify your path...

They live here with a default installation:
${HOME}/Library/Android/sdk/tools
${HOME}/Library/Android/sdk/platform-tools
Here's what you want to add to your .bashwhatever
export PATH="${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/platform-tools:${PATH}"

Location of Android SDK folder on Mac, Then you can find the Android SDK Location directory path in right panel, remember it. tools android sdk platforms show package details  Open Qt Creator of your Felgo installation, open the preferences and add the SDK & NDK paths (see above) (the JDK location should be something like: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home) Restart Qt Creator to auto-set up the Android kits.

How To Set Android SDK Path In Windows And Mac, If you're using a different flavor of Linux, find the correct packages for ncurses5 Add the full path to the Android SDK tools and Android SDK  Step 4: Under Android SDK location option your current SDK is located Step 5 : If you want to change it then click on the square box given on the end of url. Step 6 : It will show you a dialog box, select the new SDK from your drive and Click OK.

  1. How do I find Android SDK on my machine? Or prove to myself it's not there?

When you install Android studio, it allows you to choose if you want to download SDK or not

  1. If it's not there how do I install it?

you can get SDK from here http://developer.android.com/sdk/index.html

  1. How do I change PATH to include Android SDK?

in Android Studio click in File >> Settings

How to install the Android SDK on Windows, Mac and Linux , Add the Android SDK path to Unity The first time you build a project for Android (​or if Unity later fails to locate the SDK) you will be asked to  If Android Studio shows you the path /Users/<name>/Library/Android/sdk but you can not find it in your folder, just right-click and select "Show View Option". There you will be able to select "Show Library Folder"; select it and you can access the SDK. If you don't want to open Android Studio just to modify your path

If Android Studio shows you the path /Users/<name>/Library/Android/sdk but you can not find it in your folder, just right-click and select "Show View Option". There you will be able to select "Show Library Folder"; select it and you can access the SDK.

[OS X] Remember to install the Android SDK via the SDK Manager , Recommended packages; Edit or add SDK tool sites; Auto-download missing Check for Update (on Mac, Android Studio > Check for Updates). you can find each package in the directory indicated as the Android SDK  Start Android Studio. On first launch, the Android Studio will download latest Android SDK into officially accepted folder; When Android studio finish downloading components you can copy/paste path from the "Downloading Components" view logs so you don't need to type your [Username]. For Windows: "C:\Users\ [Username] \AppData\Local\Android\Sdk"

Update the IDE and SDK Tools, Overview · Add code from a template · Find sample code · Add a module for a set ANDROID_SDK_ROOT=E:\Android\sdk\ $ emulator -avd Pixel_API_25 ANDROID_SDK_ROOT, Sets the path to the SDK installation directory. macosx , or linux when you use sdkmanager to download packages for an  Note: this was originally written on Installing ADB on MAC OS X but that question was closed as a duplicate of this one.. Option 1 - Using Homebrew. This is the easiest way and will provide automatic updates.

How to set environment variables, Prerequisites. A Mac OS X or Windows development machine. You install the JDK and Android Studio, and then you install the Android SDK from within Android Studio. The Android If you can't find the program file, continue to step 2​. For example, on a Mac, the path is typically /Users/<username>/Library/​Android/sdk. Detecting Android SDK Unable to List Target Platforms. Please make sure the Android SDK path is correct. See the Console for details. Console Details: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. C:\Users\UserName\AppData\Local\Android\Sdk\tools\bin\avdmanager.bat list target -c stderr

Set Up Your Android Development Environment Unit, 5. Add the Android SDK path to Unity. The first time you build a project for Android (or if Unity later fails to locate the SDK), you will be asked to locate the folder where you installed the Android SDK. Select the root folder of the SDK installation.

Comments
  • try searching here /Library/Android/sdk/
  • you need to export 2 paths -- stackoverflow.com/questions/18143183/…
  • you can find the path in your sdk manager: Android Studio->Preferences->Appeareance & Behavior->System Settings->Android SDK-> here Android SDK Location
  • Try /Users/<your_user>/Library/Android/sdk
  • Thanks. I followed step 1 and saw the path was: /Users/user/Library/Android/sdk Curiously, using "Finder" and Go->Go To Folder, I couldn't get to it by drilling down from /Users/user/Library etc. The user directory did not show Library! Must be some strange Mac thing. I had to put the full path in Finder.
  • For posterity, this link might be useful for adding to PATH: osxdaily.com/2014/08/14/add-new-path-to-path-command-line I had to manually type the path in for the export. Nowhere in "Finder" did I see a copy directory name like in Windows. Sigh...
  • Restart the Terminal after you safed the /etc/paths file
  • Recommend not edit /etc/path directly. use "export" in ~/.bash_profile instead. Ex. export PATH="/Users/<user_name>/Library/Android/sdk/platform-tools/":$PATH after add above to ~/.bash_profile just use source ~/.bash_profile if there is no error you can freely to use adb command
  • Thanks this worked perfectly for me. I had tried to export in ~/.back_profile but that did not work at all.