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