Xamarin Warning- TargetFrameworkVersion error (need to increase TargetFrameworkVersion) for your project

I was doing Xamarin and i got this error –

The $(TargetFrameworkVersion) for FormsViewGroup.dll (v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0). You need to increase the $(TargetFrameworkVersion) for your project.

I went into “C:\Program Files (x86)\Android\android-sdk” and run SDK Manager.exe as manager and do an install and update.

Rebuild the solution in Visual Studio and it will work