Mono for Android (formerly: Monodroid) allows developers to use microsoft™visual studio™ to create applications based on C # and. NET, and to have these programs run on Android phones.
The installation of the environment has been a lot of historical versions when I found it, and I used xamarin.android 4.10.01068 & IOS 1.8.361.0. Looks like 4.12.XXX has come out, regardless of.
To start the installation:
One, download; the things to download are:
These two should be 1.9G, but there is no ndk in the two packages, so download this separately:
。 To this, the installation of the things will be downloaded to complete.
Here are two tools recommended for early preparation: Uninstall tool and search everything. As for these two is what things can only go to Baidu. The place to use them is to clean the stuff off when the environment is not properly installed.
Second, installation, in order to install it, the download package has a method of installation, attention must be carefully read every word.
1), Jdk-6u45-windows-i586.exe
2), unzip the ANDROID-SDK in the package to this path (the path does not contain Chinese): D:\Program files\android\android-sdk
3), Installer_r22.0.4-windows.exe (the program is also installed to the above path)
4), set the system environment variable: Right-click My Computer--Properties--Advanced system settings--advanced--environment variables--system variables, find Path, double-click to modify, add to the front: D:\Program files\android\android-sdk\tools ; (Note the end must have; If you already have this value in Path, you do not need to add it. In addition, the path of the JDK is best added to the inside: C:\Program Files (x86) \java\jdk1.6.0_45\bin;.
5), Gtk-sharp-2.12.22.msi
6), Xamarinstudio-4.0.13-38.msi
7), Mono-android-4.8.03015.msi
8), Xamarin.ios_setup-1.4.2.0.msi (if not develop IOS, this does not need to install), the spirit of the hard drive infinite mentality, I will be loaded.
Three, crack; this place I have been engaged for a long time, and therefore add a QQ group, but do not know is into the dumb heap or How, TM no one bird me, find a long way to finally find a solution.
1), as stated in the documentation
It's done. The description of the content in the file, if you see that you also feel that it is over, so well, we are all wrong.
2), Android: in the cmd command switch to%programfiles (x86)%\msbuild\xamarin\android directory run the following command to register:
Mandroid.exe--activate--activation-name=b4a--activation-phone=b4a--activation-company=b4a--activation-code=b4a --ACTIVATION-EMAIL=B4A Run command: Mandroid.exe--entitlements > "%temp%" \mfa.txt
Run the command again: type "%temp%" if \mfa.txt appears similar to "Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx monoandroid priority2014-08-26t05:52: "
form indicates a successful registration.
3), IOS: In the cmd command switch to %programfiles (x86)%\msbuild\xamarin\ios directory run the following command to register:
Mtouch.exe--activate--activation-name=b4a--activation-phone=b4a--activation-company=b4a--activation-code=b4a-- activation-email=b4a
4), restart the computer.
Four, configuration; Mono for Android cannot start the emulator, prompting: Android SDK not found. This problem is because the Android SDK path is not set, so mono for Android vs plugin cannot find this path. To configure the SDK and NDK path in this, which also uses the NDK package we downloaded earlier, I also extracted it into the Android folder.
Well, apart from the RP reason, it should be possible to start the first Android program research.
Mono for Android Environment installation, decryption and configuration