Right off the bat, installing the Android SDK was a bit of a “huh?” moment, but I came across this nice guide for getting up to speed with installing the Android SDK on a Mac: http://www.youtube.com/watch?v=zTh1i-7D75o
So to recap and make it more geared towards Unity peeps, do this:
- Download the latest SDK: http://developer.android.com/sdk/index.html
- Unpack it and place it somewhere, i.e. /Developer/android-sdk-macosx/
- Fire up a terminal window go to /Developer/android-sdk-macosx/tools and execute the Android SDK Manager: ./android
- When the window pops up, check the boxes for target APIs you need, and hit “Install x packages” <- x the number of packages to install
- Connect your Android device to your Mac with a USB cable and go to it’s Settings->Applications->Development->USB debugging and turn it on
- When you build for Android in Unity the first time, point it to the /Developer/android-sdk-macosx/ folder when it asks for the SDK location
Tadaaa!
if(Tadaaa==false)
{
RestartUnity(“BuildAndRunAgain”);
}