[[Mobile/Fennec/Android_OtherBuildEnvs#Mac_OSX | Setting up an Android dev environment]]
* note: installing *all* the platform tools (all Android from 1 to 3.3) takes a while, if you only need a specific SDK version, just install from the GUI tool:
$SDKANDROID_HOME/tools/android
=== Emulators ===
* to create:
Use the command line <tt>$SDKANDROID_HOME/tools/android</tt>, or use the graphical Android AVD Manager (from within Eclipse: <tt>Window > AVD Manager</tt>).
$ $SDKANDROID_HOME/tools/android create avd -t android-10 -n NAME -c 2047M produces the output
Auto-selecting single ABI armeabi
Android 2.3.3 is a basic Android platform.
* to launch:
$ $SDKANDROID_HOME/tools/emulator -wipe-data -avd NAME -partition-size 2047
{{note|The partition size is set large so that you don't run into an insufficient storage error.}}
* to delete:
$ $SDKANDROID_HOME/tools/android delete avd -n NAME
After installation, fennec would crash on installation (unable to locate mozutils library, although it's in the apk). Possibly related to emulator failing to run NDK applications?
** Ensure your Android device is connected to your computer's USB port.
** Run
$SDKANDROID_HOME/platform-tools/adb install -r objdir-droid/dist/fennec*apk
* Emulator:
** Ensure the emulator is running.
** Run
$SDKANDROID_HOME/platform-tools/adb install -r objdir-droid/dist/fennec*apk
{{note|You may need to run <tt>adb kill-server; adb start-server</tt> if adb doesn't recognize the emulator.}}
* Logcat debug statements
$SDKANDROID_HOME/platform-tools/adb logcat
=== Setting up Eclipse ===