Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 667
Manoj Maharana Avatar asked May 02 '17 11:05

Manoj Maharana


3 Answers

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!

like image 148
mindOfAi Avatar answered Nov 17 '22 13:11

mindOfAi


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

like image 26
Thrud Avatar answered Nov 17 '22 15:11

Thrud


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

like image 1
Kman Avatar answered Nov 17 '22 13:11

Kman