Installation and configuration of the "C #" VS2015 Development Environment (ii) 2016-07-03 update

Source: Internet
Author: User
Tags android sdk manager

Categories: C #, VS2015, WPF, ASP. NET MVC, Android, IOS, Unity3d;

Date Created: 2016-07-03

Follow the steps described below to install it.

First, install the JDK and Android SDK

If you don't have to develop Android and iOS apps in C #, you don't need this step.

When developing the Androd app in C # and VS2015, the JDK and Android SDK must be installed, but this step is not related to the installation VS2015, and Microsoft integrates it into the installation tool only to simplify your installation process. However, due to the domestic wall because of the reason must be a special means to the two installations can be successful, so you need to pull it out of a separate installation. After installation, VS2015 can automatically detect it.

Note: If you are developing an Android application using the x86 emulator instead of the x64 emulator, you must download the 32-bit JDK instead of downloading the 64-bit JDK.

The main reason for using the x86 simulator instead of the x64 emulator is that it is possible to run 32-bit Android applications on 64-bit machines, but not vice versa. Currently (2016) most people use 32-bit hardware phones, so there is no need to use a 64-bit simulator. After the 64-bit architecture of the mobile phone popular, and then use the 64-bit simulator to test is not too late.

Of course, if you're testing a 64-bit phone now, and you want to run a 64-bit Android app instead of a 32-bit program, you'll need to install the 64-bit Android SDK.

1. Installing the JDK

Select the following installer as needed (available for free download on Oracle's website).

Option 1 (test the emulator lower than Android 4.4 must install it, otherwise it does not need to install):

Jdk-6u45-windows-i586.exe

Option 2 (32-bit Java JDK, I'm using this version):

Jdk-8u91-windows-i586.exe

Description: Android N (7.x version) released in 2016 was a big change, providing only the native API and no longer providing Java interfaces (cry with Java development).

2. Install the Android SDK

Download the following Android SDK installer, run it after downloading, install it into the D:\Aandroid\android_sdk folder (C drive has permission restrictions, cannot use it to upgrade automatically, so do not install to C drive).

Installer_r24.4-windows.exe

Download URL:

Https://dl.google.com/android/installer_r24.4-windows.exe

After downloading and installing, run SDK Manager.exe and download the corresponding package.

Here is the interface configuration you should see after choosing Tools, Managed add-on Sites ..., to let you know why the SDK Manager.exe automatically check for updates and downloads.

Note that this paragraph is obsolete (skip directly): In the main interface, select "Tools" à "options", in the popup screen, select "Settings", HTTP Proxy server Fill "mirrors.dormforce.net", http Proxy Port "80", and then tick "force https://...sources to be fetched using http://...", close after closing the SDK Manager, then rerun, and then download the corresponding package.

Here is the interface configuration you should see when you choose Tools, Options:

HTTP Proxy Server: (blank, there is nothing to fill in)

Http Proxy Port: (blank, there is nothing to fill in)

Use download cache: (tick)

Others: (three not checked)

Which versions of the Android SDK should I download? In fact, from the latest Android N to Android 6.0 to the earlier release of the various versions of the Android SDK can be, depends on you are prepared to install your own application to which version of the Android platform. If your computer is local tyrants level, you can even install various versions, if you are afraid of your computer hard disk, then choose only the most popular version of the current.

My hard drive capacity is limited, so only the following version is selected:

Android 6.0 (API 23)

Android 4.4.2 (API 19).

Note You must install the latest version of Android SDK tools and Android SDK Platform-tools, to use the corresponding version of the Android SDK Build-tools and SDK Platform must also be installed, System Image select Install as needed.

Here is the interface that I should see when I download and automatically install the corresponding installation package through SDK Manager at the end of June 2016 (be sure to note the checked version, otherwise an error occurs when you create an Android program.) Also, none of them are "not installed"):

Special Reminders:

(1) Do not install Android SDK Build-tools 24, this is because the following steps are installed in Xamarin for Visual Studio 4.1.4 Stable edition (released June 2016) is not yet supported Build-tools 24 (4.2 version is supported, but the 4.2 version is not stable version, a lot of bugs), this is very important. If you do not see clearly installed Build-tools 24, it must be unloaded.

(2) This blog introduces all the examples used by the Android SDK Build-tools versions are 23.0.1 (the simulator starts quickly, starts in less than 30 seconds), do not install 23.0.3 (this version of the problem is more), or the emulator starts and runs the program very slowly, but also brings other problems.

3, Installation HAXM

This step only applies to the development of the computer for Intel's CPU,AMD CPU just skip it.

Locate the HAXM that you downloaded under extras (the last row), run it, and use the default configuration. As shown in.

Problems encountered during installation and solutions to find their own online.

I developed the computer is Intel's CPU (8GB memory), so in the Android SDK manager also downloaded Intel's Android x86 simulator. With GPU acceleration after installing the HAXM, the simulator starts very fast (less than 1 minutes) and operates very smoothly.

If the development of the computer Intel's CPU, in addition to using the Intel Company's x86 simulator, you can also use the ARM simulator to test. However, because the accelerator cannot be used in this case, the simulator starts slowly (about 3 minutes before it starts successfully), and the operation is not smooth, but does not affect the use.

If the development of the computer is AMD's CPU, due to the inability to use Intel Acceleration technology, so only with the ARM simulator debugging Android program, without installing other emulator acceleration technology, each boot will be very slow.

Ii. installation of VS2015 (with Update3) Simplified Chinese Enterprise Edition

Must be installed.

VS2015 Simplified Chinese Enterprise Edition (released on June 27, 2016 Update3), Enterprise Edition is the most functional version of the VisualStudio development tool. Download the file name from Microsoft's official website:

Vs2015.3.ent_chs.iso (7.25 GB)

It is strongly recommended to download the file on Microsoft's website. After downloading to the domestic Internet to find a serial number, any search, everywhere, there is not much to say.

Below is the installation, which you can use to check that the installation options are correct.

Note: C # is VS2015 installed automatically because C # is the preferred programming language for. NET, not an option, so it is not shown in the installation options.

Third, install the Android development environment

If you don't have to develop Android and iOS apps in C #, you don't need this step.

This step continues with the installation of the SDK, JDK, and VS2015 in the previous steps.

1. Install Xamarin for Visual Studio 4.1.1.3

If you originally installed an older version, uninstall it first.

Here is the version history of Xamarin for VS release:

...... Earlier 3.x version (slightly, obsolete, charge)

November 2015 release: Xamarin for VS 4.0.0.1717 version stable (deprecated, charged)

March 2016 release: Xamarin for VS 4.0.1.145 version stable (deprecated, charged)

Note: After Microsoft March 2016 formally acquired Xamarin, from Xamarin for VS 4.0. Version 4.4 and later, after installation is free Enterprise Edition, no longer need to crack, and no longer need a separate account.

April 2016 release: Xamarin for VS 4.0.4.4 Stable Edition (Enterprise Edition, free)

May 2016 release: Xamarin for VS 4.1.0.530 Stable Edition (Enterprise Edition, free)

June 2016 release: Xamarin for VS 4.1.1.3 Stable Edition (Enterprise Edition, free)

Xamarin for VS 4.1.1.3 version stable installation files:

Http://download.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.1.1.3.msi

Run it directly after download (note Before installing the new version of Xamarin, be sure to uninstall the previously installed Xamarin for vs old version from the Control Panel before running the installer).

Here is the interface at the time of installation:

2. Configure the Android development environment

The configuration of the Android development environment under VS2015 is simple, and the installation path of the JDK, SDK and NDK can be set directly. Methods are:

Run VS2015, tools, Options, Xamarin, specify the following configuration:

So far, the development environment for developing Android apps in C # has been installed.

Iv. installation of UNITY3D development environment

If you don't use C # to develop 3D games, 3D applications, virtual reality applications, you don't need this step.

The specific installation steps for unity are described in the Unity3d module in this blog. There's no repetition here.

V. Observing the installed version

After all installation is complete, run VS2015 and observe the installed version:

Installation and configuration of the "C #" VS2015 Development Environment (ii) 2016-07-03 update

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.