mxcl/homebrew — Issue #10616: Android SDK needs $ANDROID_SDK_ROOT defined
Author: MattRogish
Created: 2012-03-01 15:44:47+00:00
State: open

We've ran into an issue where we need to load android emulators from the command line in order to pass -partition-size (changing the local installed storage of the device; this flag isn't settable in the avd manager itself).

When you go to run an avd from the command line, e.g.

`emulator @myavd -partition-size 300`

you'll get:

emulator: ERROR: unknown skin name '...'

This is fixed by running:

`export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/r16/`

I looked through the formulae and I don't know how to make this a part of the base formula (I'd happily fork and fix if I knew how)... It definitely needs defined, though, otherwise many of the tools won't work from the command line.

Thanks!

--
Matt