Xamarin C # Android for Windows installation

Source: Internet
Author: User
Tags gtk windows x86 android sdk manager visual studio 2010 java se

Xamarin C # Android for Windows installation

Xamarin's. Android Manual Installation

Install Xamarin on Android on Windows machine

Most of the time, Xamarin installs. Android and the required components are through the generic installer, but in some cases these components will need to be installed manually. This article describes the required installation steps and configuration details for installing Xamarin. The Android platform and its prerequisites in Windows components.

Install Xamarin Studio for Windows (optional)

Install Xamarin 3 (including xamarin.android) Unified installation Program , which is accessed by download Page . Http://xamarin.com/download unified (or generic) Setup will install all of the required product development on Windows, including Xamarin. iOS and Xamarin. Android is a Visual Studio plugin.

In some cases, however, it is not possible to use the unified Installer-for example, network restrictions. In this case, each Xamarin product can be downloaded separately by accessing your storage account Https://store.xamarin.com/account/my/subscription/downloads , and install it manually.

In this guide, we will go through the manual installation of Xamarin. Android platform and its external components. The following steps require manual installation of xamarin.android:

    1. Installing the Java SDK (JDK)

http://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/# Installing_java_sdk_ (JDK)

    1. Installing the Android SDK

http://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/#Install_Android_SDK

    1. Installing gtk#

http://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/#GTK_Installation

    1. Install Xamarin Studio for Windows (Optional)

http://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/#Xamarin_ Studio_installation

    1. Install Xamarin 3 (includes xamarin.android)

http://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/#Xamarin_ Three_installation

Configure Xamarin.android

http://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/# Configuring_xamarin.android

Demand

Xamarin Android uses any of the following settings:

    • The latest version of Windows 7 above Xamarin Studios.
    • Windows 7 and later with Visual Studio 2010 Professional or later.

Xamarin's Android also requires a 32-bit Java JDK 6 (1.6) to be installed. Later versions of the JDK can also be installed with JDK 6 if needed for your machine.

Installing the Java SDK (JDK)

JDK can be downloaded from any browser Oracle's website and browse to the section with the title Java SE 6 U3 Development Kit .

Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html

before downloading the executable file, we must first accept the license Agreement header. We can download the Windows x86 version by clicking the package name jdk-6u39-windows-i586.exe  . This is shown below:

this is Vital to Install the 32-bit version of the Java JDK even if you are using 64-bit Windows. It is also important that the v1.6 Java JDK is installed (although it can be installed at 1.7 or later).

Recommended is that Java JDK C:\Program Files (x86) \java. Put it in the directory this is the default location, and your IDE will check to see if it is installed.

Installing the Android SDK

Android SDK contains all the tools and frameworks you need to develop Android apps. There are many steps that need to be installed correctly, as described below:

  1. Download the android SDK-Android SDK provides the required API libraries and tools to build, test and debug applications on Android. It can be downloadedhttps://developer.android.com/tools/sdk/ndk/index.htmlInstaller_r (XX). [x]. [X]-windows.exe一般 not for developing Android apps, we recommend that you install it. Android NDK can be downloaded download Android NDK --This is the native developer kit for Android, for embedding. NET component library. Although the NDK looks like this: This will provide the default location for the package that will be extracted to the C:\Program Files (x86) \android\ Android SDK.

  2. install Android sdk  --after downloading the SDK, we need to install it. Follow the installation Wizard to install the Android SDK, and make sure the option   Install any use of this computer  

  3. sdk tool only   download other platforms   Span id= "outfox_jtr_trans_node-619" class= "Outfox_jtr_trans_node" and file name   ANDROID-NDK-R[X]-WINDOWS-X86.ZIP  Extract the ndk and place it in the same location SDK (c: \ Program file (x86) \ Android). This will create a directory named "Android-ndk", possibly with the name, version number, as follows:  

  4. --Locate the Android SDK Manager in your Start menu, and then click Open. Install the required SDK tools and APIs

  5. -Once started, we can use the Android SDK Manager to select the relevant components to install. The latest version of the following components must be selected:--android SDK tools . Select Windows 32-bit package, which should be named similar to

      • Android SDK Build tool.
      • SDK Operations Manager

    These choices are as follows:

    installation, click [x] Install package button, accept Android SDK license on the screen below, click Install shown below:

    1. install more Android platforms --deciding which platform to install is entirely up to you, although it is recommended that at least the most popular platform Android instrument panel be installed. The SDK Manager can access the studio through Xamarin at any time, adding new or additional API versions.

Installing GTK

gtk# only needs if you plan to use Xamarin's studio in Windows, if you are developing in Visual Studio you do not need to install it at all. GTK #是一个. NET binding GTK + http://www.gtk.org/ and various GNOME libraries with C # and system libraries to build graphical applications provide developers with tremendous productivity in particular compared to GTK +.

This can be downloaded from the The download section is on the mono website, or directly from here . Http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.21.msi

Studio to install Xamarin

After all the bricks are installed, it is time to install the IDE for us. When using Windows you have a choice of Ide--xamarin studios or Visual Studio, which we recommend to have at the same time. In this section, we'll look at the studio where Xamarin is installed.

Xamarin's Studio is an open source integrated development environment (IDE) designed to build mono-based applications.

download Xamarin Studio and log into your Xamarin account Shop Page and navigate to the download page:

This page allows you to download each individual product that makes up Xamarin. Download the latest version of Xamarin Studios and xamarin.android from here,

once downloaded, click . exe  file to install the product, follow the installation wizard.

Install Xamarin 3 for Visual Studio

First, if you plan to develop with Visual Studio, you must already have a valid copy Visual Studio 2010 Professional or later installs on your machine. Xamarin 3 can be installed to allow the development of Xamarin. Android in Visual Studio.

Xamarin Xamarin 3, install. Android or Xamarin. The download page installs all the necessary components for iOS to use Xamarin in Visual Studio. So if you already have Xamarin installed. IOS, you can skip this section.

installation of Xamarin. Android in Windows, visit the store page and navigate to the download:

Under Windows dropdown Xamarin. Android, download the latest version

Configure Xamarin.android

Finally, after we have installed the different parts, we can configure them to complete our installation:

    • Configuring the SDK -Once we install the prerequisites listed on the SDK, we need to configure the appropriate platform installation directory path in our IDE.
    • Configuring the Emulator --For our Xamarin running and commissioning. Android app, we need to create and configure the device using the Android virtual device (AVD) Manager. This can illustrate the discovery of the configuration simulator Guide.

Configuring the SDK

Xamarin's Studio

in the menu bar, navigate Tools > Options and locate the location for Android under the SDK as shown in the following screen:

Https://developer.android.com/tools/sdk/ndk/index.html

Visual Studio

Navigating in the menu bar Tools > Options and locate android under Xamarin as shown in:

Configuring the Java SDK (JDK)

Xamarin's studio will target the default location of the Java JDK. If we have installed the JDK or installed it to a different location than the default, we can Navigate to the appropriate path by clicking Configure, and then navigating to the installation path.

Visual Studio is slightly different and you will notice that in the above, with Xamarin studio, there is no option to choose the path of the JDK. This is because the location is found in the registry and is set in the background.

Configuring the Android SDK

in the Location dialog box of the Android SDK, we can specify the installation path for our Android SDK. Click to browse Xamarin. Android for Mac

Facebook web

Congratulations! You can continue to install now Configuring the Android emulator , or continue to prepare for development and get your in this article, we examine the required components and steps to complete xamarin. Android installation. We looked at how to install and configure the required runtimes and Sdk,xamarin Studios and Visual Studio, how to configure Xamarin. The development of Android. or .

Summarize

Xamarin C # Android for Windows installation

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.