Manually installing and configuring Xamarin under Windows

Source: Internet
Author: User
Tags gtk oracle vm virtualbox vm virtualbox genymotion free

Install Xamarin

Xamarin official gives two installation methods, automatic installation and manual installation.

Automatic installation is relatively straightforward, and it will automatically download the required components after the Http://xamarin.com/download download Xamarininstaller.exe runs. The process is still relatively simple, and the following highlights the manual installation and configuration of Xamarin.

Because my system (win8.1 64-bit) was running Xamarininstaller.exe, I sent a message to Xamarin's support group, and they replied, "Install it manually," and send the download link for each component. This time in the online search for information, found that some components in the download process should pay attention to the version, otherwise it will cause a variety of problems. The complete download link is shown below, and these components are verified and can be used as long as they are downloaded and installed in sequence.

Jdk:http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-windows-i586.exe

Android Sdk:http://dl.google.com/android/adt/22.6.2/adt-bundle-windows-x86_64-20140321.zip

gtk#: Http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.25.msi

Xamarin Studio:http://download.xamarin.com/studio/windows/xamarinstudio-5.0.0.878-0.msi

Xamarin for Windows (includes Xamarin.ios and xamarin.android): http://download.xamarin.com/XamarinforVisualStudio/ Windows/xamarin.visualstudio_setup-3.0.54.0.msi

Description

    • Xamarin currently only supports JAVA6 and java7. I did not notice that, directly downloaded the latest java8, the results are running when prompted to find Java6 and Java7. Also say download jdk1.6 or jdk1.7, and is 32-bit, because the Android SDK relies on 32-bit JDK. The JDK version in the link above is 1.7 32-bit
    • Depending on the official documentation, the Android SDK will contain specific tools and APIs. If the Android SDK version you downloaded is inappropriate, it may not contain those specific tools and APIs. All required tools and APIs are already included in the links above.
    • Another component is the Android NDK (Android native develop kit), which is used to embed the. NET class library into a local library. The official said he was not required, but recommended installation. This is: https://developer.android.com/tools/sdk/ndk/index.html. Note To select 32-bit.

Configure Xamarin

Once the installation is complete, simply configure the line, as I developed Xamarin in vs2013 Update 2, so take vs2013 as an example to demonstrate how to configure:

Open vs2013, Tools-options-xamarin-android setting. Set the Android SDK and the Android NDk (optional), respectively, such as:

When the configuration is complete, restart vs2013, you will see two more types in the project template when you create a new project, like, see Android and iOS, is it cool?

If you are developing in Xamarin Studio, open the Xamarin Studio Tools-Options-sdk location-android and open the following interface for configuration:

Congratulations, you have completed Xamarin installation and configuration under the Windows platform. One more step you can develop, which is to install and configure the emulator.

Configuring the Android Emulator

The official says Android comes with a very slow simulator start-up (indeed, when I was developing Android, I was using my own phone to debug, my own, etc.), and recommended using genymotion to act as a simulator. The following describes the installation and use of genymotion. iOS development is not so fortunate, because Apple's restrictions must install Xcode, so an Apple computer is needed. But the couple is very poor, only a Thinkpadt 440p, so xamarin iOS configuration will not say. If you have the conditions, then here is the detailed installation and configuration process: http://developer.xamarin.com/guides/ios/getting_started/installation/mac/

The official approach is to download and install the Oracle VM VirtualBox before installing genymotion, but I found on the Genymotion website that it has a large installation package that integrates VMS VirtualBox and genymotion. Just install this big package, this is the download path: Http://files2.genymotion.com/genymotion/genymotion-2.2.2/genymotion-2.2.2-vbox.exe.

If you would like to download separately, then this is genymotion independent download interface https://cloud.genymotion.com/page/launchpad/download/.

Note: genymotion free version, standalone and commercial version. It's okay to download the free version of the cock wire.

After the download is installed, follow the default option to install it. After the installation is complete, it is simple to configure. As follows: Run Genymotion, the following screen will pop up:

If this is the first use, click on the Add button above to bring up the following interface:

Select the device you need, then click Next and Genymotion will automatically install the selected driver. Then click Play and the simulator is up and running. Such as:

After launch, you can start your Android development journey, and when you are finished developing the click Run, the simulator will display the relevant interface, such as:

OK. Here you have completed installing and configuring Xamarin on the Windows platform, and how to use a third-party emulator to run and debug Android programs. Do it!!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.