From charlesreid1

These are some old notes on installing the Android SDK on Mac.

Installing Android SDK

Mac OS X

Download android-sdk_r10-mac_x86.zip from here: http://developer.android.com/sdk/index.html

Extract to wherever you want, I put it with the rest of my 3rd-party packages in ~/pkg. It's a binary, so you can just extract the .zip file and put it anywhere.

You'll want to add the location of a couple of utilities to your $PATH, by adding this to your .profile or whichever dot file you put your $PATH stuff into (or just by running these from your command line, if this is a one-time thing for you):

export PATH="${HOME}/pkg/android-sdk-mac_x86/platform-tools:${PATH}"
export PATH="${HOME}/pkg/android-sdk-mac_x86/tools:${PATH}"

You can test it worked right by running:

$ which adb
/path/to/android-sdk-mac_x86/platform-tools/adb

$ which android
/path/to/android-sdk-mac_x86/tools/android

This doesn't come with all the things you'll need, so before doing anything else, run the "android" program, which will run the Android SDK Manager.

caption=The Android SDK Manager GUI on Mac OS X.

caption=Packages I have installed.

I recommend installing the following:

  • SDK Platform Android (whatever the latest API is)
  • Android SDK Platform-tools
  • Android SDK Tools

Pick "Available packages" from the side bar and then collapse the various lists there. You'll find the above packages in the list.

If you try and collapse the list and you see a "Failed to fetch URL (blah blah blah)", then pick "Settings" from the side bar and check "Force https://... sources to be fetched using http://...".

MacDroid3.png

Windows

1. Extract the HTC_Droid_Incredible_Root.zip file to a folder with the same name

2. Open the folder and launch HTCSync2.0.25.exe and complete the installation

Droidroot1.png

Droidroot2.png

3. Copy the sdk directory into the root of the C drive, in C:\sdk

4. Open C:\sdk and run SDK Setup.exe

Droidroot3.png

a) you may get an error about https, if you do then close the window with the error message and click "Settings" on the left-hand side, then check the box that says Force https:// sources to be fetched using http://)

b) you may also need to update the version of the Tools. Click on "Available Packages" on the left-hand side of the "Android SDK and AVD Manager" window, and then check the "Android SDK Tools" box, and then click "Install Selected".

Droidroot4.png

5. Go back to the unzipped HTC Droid Incredible Root folder and open command.txt

6. Open a Windows command prompt (Start > Run > "cmd")

7. Change directory to C:\sdk\tools by running

> cd\
> cd sdk
> cd tools

Droidroot5.png

[Category: Android]