Android Manual Installation
Manual Installation
Installing Mono for Android for Windows involves six steps:
Note: Available versions are updated frequently and these versions are just suggestions. Normally it is easiest to use the Update All... button.
If you receive an error message when opening the SDK Setup application that states "Failed to fetch URL https://...", you should check the "Force https://... sources to be fetched using http://..." option under "Misc" in the "Settings" list before returning to the "Available Packages" list.
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. The Mono for Android addin will handle this for you.
Mono for Android currently requires the latest 2.6 beta version of MonoDevelop. You can download it from http://monodevelop.com/Download
The latest MonoDevelop beta includes the Mono for Android MonoDevelop
addin, but it may be the case that a newer version of the addin is
available.
To make sure you are using the latest one go to the Tools->Addin Manager dialog, and go to Updates. In case a newer version exist, a Mobile development node will appear, containing a "Mono for Android development" element. Select it and click on the "Update" button on the right.
After installing the addin, you will have to tell it where you have installed the Android SDK.
Open the Tools->Options dialog, go to the Other category, and select the Mono for Android SDKs option panel, and specify the Android SDK location.
Step 1 - Install the Java JDK
Download and install the Java 1.6 (Java 6) or Java 1.7 (Java 7) JDK. The JRE is not sufficient. The Android SDK requires the 32 bit JDK, that is, select "Windows" for your platform, not "Windows x64".Step 2 - Install the Android SDK
Download the Android SDK from Google:- Download Windows SDK installer (e.g. installer_r10-windows.exe) from: http://developer.android.com/sdk/index.html
- Run the installer.
- Run the SDK Manager after install.
- Install at least:
- Android SDK Tools, revision 16 or greater
- Android SDK Platform-tools, revision 10 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
Note: Available versions are updated frequently and these versions are just suggestions. Normally it is easiest to use the Update All... button.
If you receive an error message when opening the SDK Setup application that states "Failed to fetch URL https://...", you should check the "Force https://... sources to be fetched using http://..." option under "Misc" in the "Settings" list before returning to the "Available Packages" list.
Step 3 - Configure Your Simulator
The Android Simulator can be run in a variety of configuration to simulate different devices. You should configure at least one 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. The Mono for Android addin will handle this for you.
Step 4 - Install Mono for Android for Windows
Download and install the Mono for Android Windows installer from http://android.xamarin.com/DownloadTrial
Step 5 - Install MonoDevelop for Windows
Mono for Android currently requires the latest 2.6 beta version of MonoDevelop. You can download it from http://monodevelop.com/Download
Step 6 - Install Mono for Android MonoDevelop addin
The latest MonoDevelop beta includes the Mono for Android MonoDevelop
addin, but it may be the case that a newer version of the addin is
available.To make sure you are using the latest one go to the Tools->Addin Manager dialog, and go to Updates. In case a newer version exist, a Mobile development node will appear, containing a "Mono for Android development" element. Select it and click on the "Update" button on the right.
Configuring the Addin
After installing the addin, you will have to tell it where you have installed the Android SDK.Open the Tools->Options dialog, go to the Other category, and select the Mono for Android SDKs option panel, and specify the Android SDK location.
Comments
Post a Comment