Xamarin. Forms + Prism (1) -- Development Preparation, xamarin. formsprism
This essay is mainly used to record the third-party technologies or skills used in Xamarin. Forms APP development in my project.
Preparation:
1. VS2017 (recommended) or VS2015;
2. JDK 1.8 or above;
3. The latest version of Xamarin. Forms;
4. Prism Extension: Open the extension and update of VS, search for Prism online, and install the first extension Prism Template Pack;
5. Android SDK. This download is very fast and supports Android environment download in China.
6. After preparing the Xamarin. Forms Program, make sure that the new Xamarin. Forms Program can be properly debugged and run without debugging. Baidu or Google can find a solution;
Debugging:
1. Real-machine debugging. If you have an Android phone in your hand, real-machine debugging is also a good method, because it can ensure that your program can run on a real mobile phone.
2. AVD debugging (recommended): First uninstall the Hyper-V feature (if it is already installed) and install HAXM (Hyper-V must be uninstalled before it can be successfully installed ). Open SDK Manager as an administrator. Check the following figure.
After the installation is successful, open AVD Manager and create a simulator. Note that the target image is the 6.0X86 image we just downloaded. The device pixel depends on your computer hardware configuration. The P is enough, if you have an independent graphics card, choose Use Host GPU, which will be much faster. See:
After the creation is complete, return to the main interface and click Start... to quickly run the android simulation system. The first time is a little slow, it will be very fast later. During debugging, the program is loaded quickly.
3. simulator provided by VS (not recommended, it is really slow): This simulator is easy to install. Open the installation package of VS and check Visual Studio Emulator For Android, then install Hyper-V (the CPU must be supported, and some PCS also need to enable the Hyper-V feature of the CPU in the BIOS), and then the system can basically run, the worst thing is that he will bring his own Android image, which is a waste of space.