Currently, the Xamarin.Forms version that your project has been created with is most likely a bit old. To rectify this, we need to update the NuGet packages. Please note that you should only update the Xamarin.Forms packages and not the Android packages; updating the Android packages might cause your packages to get out of sync with each other, resulting in the app not building at all. To update the NuGet packages, go through the following steps:
- Right-click on our solution in the Solution Explorer.
- Click Manage NuGet Packages for Solution..., as shown in the following screenshot:
This will open the NuGet Package Manager in Visual Studio, as shown in the following screenshot:
To update Xamarin.Forms to the latest version, go through the following steps:
- Click the Updates tab.
- Check the Xamarin.Forms checkbox and click Update.
- Accept any license agreements.
The update takes, at most, a few minutes. Look at the output pane to find...