The $(TargetFrameworkVersion) for FormsViewGroup.dll (v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0) xamarin

23,279

Solution 1

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!

Solution 2

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.

Just in case here is the screenshot

Solution 3

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

Share:
23,279
Manoj Maharana
Author by

Manoj Maharana

Updated on October 06, 2020

Comments

  • Manoj Maharana
    Manoj Maharana over 3 years

    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