Mac
Table of contents
Installing Mono for Android for Mac involves six steps:
- Install the Java SDK
- Install the Android SDK
- Install Mono for Mac
- Install MonoDevelop for Mac
- Install Mono for Android for Mac
- Update the Mono for Android MonoDevelop Add-in
- Configuring the Add-in
- Configure your Emulator
If you are upgrading from the first preview of the addin, you may skip a few steps:
- Update MonoDevelop for Mac
- Update Mono for Android for Mac
- Update the Mono for Android MonoDevelop addin
Install the Java SDK
Mac OS X 10.6 (Snow Leopard) already contains the Java SDK. Nothing needs to be done on Mac OS X 10.6.
Mac OS X 10.7 (Lion) does not contain the Java SDK. To install the Java SDK on Mac OS X Lion:
- Open the Applications > Utilities folder (within Finder, press Shift+Command+U).
- Open the Java Preferences utility.
-
If Java is not installed, you will see a dialog box stating To open "Java Preferences", you need to install a Java Runtime. Would you like to install one now?

- Press the Install button.
Install the Android SDK
Download the Android SDK from Google:
- Download Mac SDK zip (e.g. android-sdk_r08-mac_86.zip) from: http://developer.android.com/sdk/index.html
- Extract the installer to some location such as /opt/android/sdk.
- Run the SDK Manager (tools/android) after install. If prompted to install the Java runtime, click the Install button.

- Install at least:
- Android SDK Tools, revision 10 or greater
- Android SDK Platform-tools, revision 3 or greater
- Install one or more SDK Platforms, such as:
- SDK Platform Android 1.6, API 4, revision 3
- SDK Platform Android 2.2, API 8, revision 2
Install Mono for Mac
Download and install the Mono framework for Intel Mac from Mono download page
You must have Mono 2.10.1 or later. If you have an older version, please upgrade it.
Install MonoDevelop for Mac
Mono for Android currently requires a beta version of MonoDevelop for 2.6, you can get it from the MonoDevelop Download page.
MonoDevelop 2.6 betas can be installed be installed side-by-side with MonoDevelop 2.4.x on Mac. We recommend continuing to use MonoDevelop 2.4.x for MonoTouch and MonoMac development.
Install Mono for Android for Mac
Download and install the Mono for Android SDK pkg from http://mono-android.net/DownloadTrial
Update the Mono for Android MonoDevelop Add-in
Open MonoDevelop, then click MonoDevelop > Add-in Manager....

In the Installed tab, expand the Mobile Development tree and select Mono for Android development.

Click the Update button, if available, then click the Install button. You need at least version 2.6.5.2 of the add-in.
Once the add-in has been installed, restart MonoDevelop.
Configuring the Addin
After installing the addin, you will have to tell it where you have installed the Android SDK.
Open the MonoDevelop->Preferences dialog, go to the Other category, and select the Mono for Android SDKs option panel, and specify the Android SDK location:

Configure Your Emulator
The Android Emulator can be run in a variety of configuration to emulate different devices. If you have a real device, you may find it to be substantially faster to develop with it instead of using the emulator. If not, you will need to configure at least one emulator to get started.
You do this by selecting the "Virtual Devices" option from the Android SDK installer:

Select "New" in this dialog box, and then configure your device. This is a good starting configuration:

Do not be scared by the following message, this is Android's SDK way of telling you that everything is OK, and everything will be alright:

Once you do this, you are done configuring the emulator. There is nothing left to do in the Android SDK Setup application.
Note: You should not start the emulator from the Android SDK Setup application. Mono for Android will handle this for you.
- Tag page
- What links here
Files (9)
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| Add-in Manager Installed Tab.png MonoDevelop Add-in Manager Installed Tab | 135.22 kB | 15:03, 5 Aug 2011 | jonp | Actions | ||
| Add-in Manager.png MonoDevelopAddinManager | 71.57 kB | 14:56, 5 Aug 2011 | jonp | Actions | ||
| InstallJavaPrompt.png InstallJavaPrompt | 26.78 kB | 21:12, 1 Aug 2011 | jonp | Actions | ||
| InstallJavaPrompt2.png InstallJavaPrompt2 | 22.65 kB | 01:52, 2 Aug 2011 | jonp | Actions | ||
| mac_android_manager_emulator_created.png No description | 33.36 kB | 05:29, 4 Jan 2011 | mhutch | Actions | ||
| mac_android_manager_emulator_new.png No description | 65.84 kB | 05:29, 4 Jan 2011 | mhutch | Actions | ||
| mac_android_manager_emulator_settings.png No description | 67.56 kB | 05:29, 4 Jan 2011 | mhutch | Actions | ||
| mac_monodevelop_sdk_locations.png No description | 109.28 kB | 05:54, 4 Jan 2011 | mhutch | Actions | ||
| MfA Preferences.png mfa_sdk_location.png | 123.95 kB | 16:09, 11 Apr 2011 | jonp | Actions | ||
[MISSING: skin.common.header-gallery-count]
| Images 9 | ||
|---|---|---|
MonoDevelop Add-in Manager Installed TabAdd-in Manager Installed Tab.png | MonoDevelopAddinManagerAdd-in Manager.png | InstallJavaPromptInstallJavaPrompt.png |
InstallJavaPrompt2InstallJavaPrompt2.png | ||
mfa_sdk_location.pngMfA Preferences.png | ||