the error is on visual studio 2017 and xamarin:
Severity Code Description Project File Line Suppression State
Warning 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.IpiCommunicationXamarin.Android D:\XmarainTest\IpiCommunicationXamarin\IpiCommunicationXamarin\IpiCommunicationXamarin.Android\IpiCommunicationXamarin.Android.csproj
It means you have a reference (FormsViewGroup.dll) which uses the Android Framework Version of 7.1, but your project only targets 6.0.
You can update your Android Target Framework Version by going to your Android Project Properties
(right click the Android Project
and click Properties
) and go to Application tab
. If you can't find the 7.1 on the dropdown, you can install it using Android SDK Manager (I think 7.1 is API 25).
Hope this helps!
I feel it's kinda late for this answer but just had the same problem and this is the first post I found so I'll answer here what worked for me.
Inside Visual just go to Tools>Android>Android SDK Manager...
There just choose the latest version (or the one you are asked to use) and that should fix it.
There is something more subtle happening here . The issue is Xamarin.Forms version of Visual Studio version you are using . For example I was using Visual Studio 2019 it has Xamarin.Forms 4.2 . It requires that I compile with Android 8.1 or above . But I can deploy to Android version less than that by setting the minimum version of android and then deploying to it.
Project Properties >> Android Manifest >> Minimum Android Version dropdown
See here
Xamarin choosing TargetFramework and MinimumAndroidVersion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With