Xamarin (Android), xamarinandroid

Source: Internet
Author: User

Xamarin (Android), xamarinandroid

Let's get started. If you are interested, I will write it slowly. Let's learn it together. We hope that the Android development content based on Xamarin can be basically completed within two months.

The same is true. Install the development environment first. Just do it.

First, we will download Visual Studio 2015 on Microsoft's official website. If you do not have a serial number, you can download the Community version. However, if your computer cannot be configured or win10 is not installed, you can find a solution on your own.

: Https://www.visualstudio.com/

After the download is complete, start the installation. Remember to select a disk with a larger capacity when selecting the installation directory. I have put it on disk D. At the same time, the system disk also needs at least 25 GB of free space, anyway, I have more than 50 GB of C drive. After installing this VS, I only have more than 30 GB of available space. Because the Android SDK or something is installed with VS. Do you know how big this is? It also applies to drive C by default.

Okay. The configuration is as follows.

After the installation is complete, let's take a look at the key JDK to see where it is stored ...... Yes, the C drive, the JDK that comes with VS during installation, is 32 bits (but my big win10 is 64 bits !). No, try to configure the environment variable. For example:

 

Okay, go to the hacker Win + R to the Black doscommand line window and check if JDK is correctly configured. (Enter java-version. If the following feedback is displayed, it indicates it is ready)

 

Okay. Everything went well. Open your visual studio 2015 and configure the xamarin development environment. Click "tool-Option-xamarin". For example, the value may not be the same as yours, because I deleted the Android SDK and NDK installed by, I downloaded a package and put it somewhere else, because I still need to install something on drive C. This is not a big deal. Let's look at eclipse. What is manual configuration? Isn't it the same way of living in the world?

Well, I can't wait to create a C # Android app. For example, directly select a blank application to create it. Take a cool name -- MyFirstApp:

Click "OK" to go to the following things interface. Here, if you want to see it, click the relevant link. There is an English version of the tutorial in it. If you can understand it, go to it, you do not need to read what I want to write next, because I also followed the tutorials provided by it and the teaching materials provided by it. Niu X's people all said they only read English documents. Once reading Chinese documents, they will not have the original flavor, right?

Okay, the URL is this, the ox Cross's man poked here: https://developer.xamarin.com/guides/android/

Let's press F5 to see what will happen. Amount ...... What is this?

Well, this is a necessary file for installing Microsoft's Android simulator. I have tried it and it is useless (maybe I have not configured it ). Uninstalled. Useful here:

Select a version of the API and install it on Android 4.4.2. If you are not prepared, you may have to wait for a while. After the event is complete, open the Android AVD, create a new simulator, and select ARM for the CPU (Be sure to select the API you have installed to create a new one, for example, I chose Android4.4.2-API 19)

Okay. After turning this off, select the new simulator from the debugging location:

Then the following ghost thing is displayed. Click it to execute it:

 

The above is the installation configuration. Next we will officially enter the learning stage and fight again tomorrow or the day after tomorrow!

 

Related Article

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.