Use xamarin to develop Android applications in Visual Studio

Source: Internet
Author: User
Document directory
  • 1. Download xamarin
  • 2. Install xamarin
  • 3. Configure the android SDK Environment Variables
  • 4. Create an android Project

The environment used in this article is Windows 8 Visual Studio 2012.2

1. Download xamarin

Http://xamarin.com/download

2. Install xamarin

Run the EXE file after download

Then go through some necessary next steps

If you want to develop Android, android must be checked. iOS is optimistic.

Add the android SDK path by yourself

Disable the enabled Visual Studio instance.

After that, various installation and downloads started.

10 minutes later... Installation Complete

3. Configure the android SDK Environment Variables

Note the operations here. Find your Android-SDK installation directory and add an environment variable.

Android_sdk_home = D: \ Program Files (x86) \ adt-bundle-windows-x86_64-20130219 \ SDK

In addition, you also need to add

% Android_sdk_home %/tools; % android_sdk_home %/platform-tools; Note: There are two (if Visual Studio is enabled, restart Visual Studio to take effect)

4. Create an android Project

Open Visual Studio and we can see these Android projects.

The authorization information is displayed when you create a new instance.

If you want to try it out, click to try it out, or enter a license or use an xamarin account.

If you use the xamarin account, you will be directed to xamarin for authorization.

Do not close the page after authorization. Wait for a while. Then, the Vs will prompt you, restart vs, and the authorization is successful. The project list is displayed naturally.

 

Click Debug. The select Simulator Interface is displayed. Select Start emulator image.

Then create a new emulator Image

Then create a simulator. Alternatively, you can use the device definitions tag to create a simulator using the template. Click start after the device is created.

 

The simulator runs, even if it is successful.

In this case, you can select a device from the device selection page.

After a period of waiting, the program can run. I can also test the click program created by the default template.

Reference:

Android SDK: http://developer.android.com/sdk/index.html

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.