Pure. NET programmer, without any Android development experience. Three days of continuous tossing, only to configure the completion of the Xamarin.android development environment, complete Hello World, all the way is a pit ah.
First, the new installation of VS2015, the mobile development options on the hook: Xamarin, Android has SDK I also hook, but no use, loaded very slow, also can not be installed. The end result is that I deleted all Android-related, manually installing and configuring the JDK, Android SDK, Android NDK.
Recommend a good place: http://www.androiddevtools.cn/
All of my tools are here. Thank you so much.
Ii. Installation of JDK
Pit One: Initially selected JDK 1.7, later found my Android SDK newness, compile-time general hints inconsistent with JDK version, I reinstall JDK 1.8
Third, install the Android SDK
Just choose the latest version.
Pit One: Can't update, need FQ, I won't. Search the web for an image address to fill in on the line.
Pit Two:
Downloading Android SDK Tools, revision 25.2.5
Installing Android SDK Tools, revision 25.2.5
Failed to rename directory D:\Program files\android\android-sdk\tools to D:\Program files\android\android-sdk\temp\ Toolpackage.old01.
My final solution is to copy the Tools folder command to the tools-replica, open the Android.dat in the replica, and run SDK Manager in the same sibling directory. Think everything, the result is still show the same error, various irritability, finally found an application in the Task Manager, Adb.exe, this is the abbreviation of Android Debug Bridge, just know that he was in mischief, turn off his, and then re-update, this is OK.
Iv. installation of the NDK
This is the only one that has not seen the pit, and it can be used with the load.
Five, simulator
Pit One: Create a new default project, the compilation succeeded, a run on the prompt deployment failure, guessed that the simulator is not loaded, find a half-day to find their own simulator without equipment, a random new one,
Pit Two: My vs does not automatically load the emulator, you need to start the emulator before running the project.
Summary: or lack of mobile development experience, 0 experience to make this thing, are tears! Keep working on it!!!
Xamarin. Android Development environment