Microsoft's build 2016 is over for a while, for a simple little stud programmer--I think the biggest concern is that Xamarin is free (open source something for the great God), the heart is excited. At the end of the week, I couldn't wait to install it, and then ... A face of confusion, update vs after what SDK,JDK do not know, the only thing to know is unable to run, then the great God has a number of articles, only to begin to understand some probably, there are errors please put in the following message, lest I mislead others.
Xamarin can be easily divided into a few:
Xamarin.Forms: Personally think this is the real advantage of Xamarin, the real cross-platform, once written, run everywhere.
Xamarin.ios and xamarin.android: this ... Well, I simply understand that xamarin. Native, just the Java and object-c or Swfit replaced by C #, the other seems to be more than a business layer sharing it, of course, this is now able to apply it, after all, can refer to Android and Apple's numerous third-party SDK.
So if you want to immediately try C # writing Android and iOS programs, You can learn Xamarin.ios and xamarin.android, but this will keep you away from the real core of Xamarin-cross-platform, so I suggest learning xamarin.forms.
Simply speaking Xamarin's installation, just keep vs 2015 up-to-date, that current Update2, in the repair options in the cross-platform mobile development Choose Xamarin on the line, he will actively tick other necessary, and then click Next, wait for it to finish on the line, normal situation, Android SDK will fail to install, but your C:\Program files (x86) file will add one more Android name to the folder, you go all the way to find an SDK Manager application that you run after you find that there are not many installation items, this is because you ... Didn't... Turn... Wall! But I advise you also don't FQ, Android SDK installed down sizzle not much to 26G, you really want to FQ, also have to download to se years, local tyrants except, say 26 g of the SDK I how willing to let it occupy my C disk, than vs is much larger ah, do not worry, Just cut the Android folder into the disk you want, the JDK, the NDK also (not a lot of these two I did not move), now say the 26 g of the SDK how to download ... Of course, the domestic mirror, http://www.androiddevtools.cn/this address, take it (except for the previous development of Android), I chose the mirrors.neusoft.edu.cn, port number 80 (Don't ask me why, because at first I was confused, Baidu came out of this thing), the JDK did not say, should know, do not know even, the NDK is simply said to be Google C/s Development app components, Xamarin is based on the C implementation of cross-platform development, so if you delete the NDK, is compiled, installation is simple to say so much.
This paragraph ... Just a simple hello world!. , the new project selection Cross-platform, select the following red circle inside the first (don't ask why, I do not know, because the official example is chosen this, to a great God to explain the next, or who is good English, to stack overflow ask a question, and then leave a word to tell me), Anyway, the third one in the red circle is the class library, which doesn't run.
Of course, the process of creating the project, you understand that you may or error, the specific forget, it seems that what value can not be null,value:path1 or the like, this is the Android SDK does not download the reason, in the tools, the options found Xamarin node, click to view, You will understand, if you do not know how to download the SDK, see the above paragraph should be able to solve.
OK, here, should have created a project (I only have Android, no Apple, so the next practice also only represents the Android project), then let us run it, I wipe .... Mom eggs, and error! Calm! By this step, we have been away from the Long march ... One step is not far, if normal, you can find the following similar error in your Error list, you only need to find this error (the other is "misleading"), because the other I do not know, also can not help you!
This error you also see very simple, download he told you to download the line (of course, according to the individual situation, the download is not the same, I this picture is let download R10.zip, this later uninstall, most is download r22.zip, seemingly), finished, you will get a compressed package, but don't listen to it, Put the package into the folder He said, open the following local path (path to Xamarin on the line, the back of the useless), in the inside Find Zips folder, open, you will see inside there is a name similar to the GUID of the package, copy the name of it, the name of the names you just downloaded on the compression package, Then delete the zips in the compressed package, you just renamed the downloaded compressed package copy or cut into the line, and then you can successfully compile your Android project.
That's it, and I'm just going to lie in these pits!
The beginning of xamarin.forms learning