The xamarin installation tutorial supports Visual Studio 2013.

Source: Internet
Author: User
Tags gtk

The premise of this article is that you have correctly installed vs 2013. All the steps in this article passed the test on the win7 ultimate 64 system and supported vs 2013. The version I used was vs 2013 update2.

1. download all the required things:

A) JDK: jdk-6u45-windows-i586.exe

B) Android SDK: http://dl.google.com/android/installer_r22.6.2-windows.exe

D) http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.25.msi

E) http://download.xamarin.com/studio/Windows/XamarinStudio-4.2.3.60-60.msi

F) http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.12.02001.msi

G) http://download.xamarin.com/MonoTouchforVisualStudio/Windows/Xamarin.iOS_Setup-1.10.47.0.msi

H) http://dl.google.com/android/ndk/android-ndk-r8d-windows.zip

2. The above are all the things required for this installation. You can use thunder to download them directly. Pay attention to the version number when downloading. Start installation.

3. Install JDK.

A) download it from the official website and install it all the way to next.

B) after the installation is complete, configure the environment variables, specifically in my computer/properties/Advanced System Configuration/advanced.

C) Create an environment variable java_home. The value is c: \ Program Files (x86) \ Java \ jdk1.6.0 _ 45. Note that the path is your installation path.

A) create another environment variable classpath with the value.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. Jar

B) edit the environment variable path and Add.; % java_home % \ bin; % java_home % \ JRE \ bin; to the beginning ;.

In this way, JDK is installed.

4. Install the android SDK

A) download the SDK installation package and install it directly. There are also offline installation packages in China, which can be decompressed directly.

B) edit the environment variable path. Add D: \ develop \ Android-SDK \ tools at the beginning; D: \ develop \ Android-SDK \ platform-tools;

Note: At this time, if you install the installation package, the directory does not contain the platform-Tools Folder. You don't have to worry about it, as long as the preceding path is correct. Do not change the last part.

5. Install gtk-sharp-2.12.25.msi

6. Install XamarinStudio-4.2.3.60-60.msi

7. Install ndk. It is easy to find a place to decompress it.

8. Install mono-android-4.12.02001.msi

9. Install xamarin. iOS_Setup-1.10.47.0.msi

10. Restart your computer

11. Cracking

A) download the crack Patch: http://www.myuplbox.com/file/download/1052689

B) Copy mandroid.exe to % ProgramFiles (x86) % \ msbuild \ xamarin \ android

C) Press win + R to start running, and Enter cmd and press Enter.

D) Run cd % ProgramFiles (x86) in cmd) % \ msbuild \ xamarin \ Android switch directory, input mandroid.exe -- activate -- activation-name = b4a -- activation-phone = b4a -- activation-Company = b4a -- activation-code = b4a -- activation-Email = b4a enter

E) Input mandroid.exe -- entitlements> "% Temp %" \ mfa.txt and press Enter.

F) Enter type "% Temp %" \ mfa.txt and press Enter.

G) If a form similar to "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX MonoAndroidPriority2014-08-26T05: 52: 36" appears, the registration is successful.

H) Copy mtouch.exe to % ProgramFiles (x86) % \ msbuild \ xamarin \ IOS

I) CD % ProgramFiles (x86) % \ msbuild \ xamarin \ IOS carriage return in cmd

J) mtouch.exe -- activate -- activation-name = b4a -- activation-phone = b4a -- activation-Company = b4a -- activation-code = b4a -- activation-Email = b4a press ENTER


The installation steps are complete. However, development cannot start at this time. What you need to do is update the SDK.

Subsequent steps:

1. Update the SDK. You must update this item in the SDK manager. Do you still remember the platform-Tools Folder? After installing this package, the contents of this folder will be displayed. If you have downloaded the full offline package before, you can skip step 1-3 If the project has a check mark before it is enabled.


2. continue to update these Android X. x. X is an android System Development Kit of different versions. If you want to develop a version, you can download it. The high version is compatible with the low version, that is, you develop an app of API version 10, high-version systems can also run. Therefore, you should have at least the latest version and a widely used low version, such as API 8.

3. The Google server cannot be connected in China during the update. You can use a proxy and freegate.

4. Open Vs and configure the android SDK and ndk path in the options.

Now, you can start development. After the android simulator is installed, you can connect to the simulator for debugging.


If you want to debug a real machine, what you need to do is:

1. connect to your phone and enable the USB debugging option. During connection debugging, a prompt is displayed, asking you to authorize your computer to connect to your mobile phone and agree to grant the debugging permission.

2. Open CMD and enter ADB devices to list all valid Android devices connected to your computer. If the device is behind offline, You can restart ADB, ADB kill-server to disable ADB, and ADB start-server to enable the Service. Then enter ADB devices to view the device status. The status after the device is device. You can perform online debugging. There are also more detailed descriptions about offline on the Internet. It is not a big problem and you don't have to worry about it. It is often encountered during online debugging. I just need to unplug the USB cable and plug it in again.

3. I personally feel that xamarin studio is more convenient for debugging on a real machine, because it has a UI for refreshing the ADB service. If vs does not exist, run cmd.

 

The above are all the installation steps. Poor people have Mac Books, so there is no installation procedure for the Apple system.


We recommend that you install a pair of things. If this is an accident, it is troublesome. It is more convenient to use a virtual machine. If this is not the case, you can reinstall the system or restore snapshots. Wish you all the best!

The xamarin installation tutorial supports Visual Studio 2013.

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.